You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/11/04 16:58:42 UTC

[lucy-commits] [4/6] git commit: refs/heads/msvc6 - Add missing check for SIZE_MAX

Add missing check for SIZE_MAX


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/fc74df23
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/fc74df23
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/fc74df23

Branch: refs/heads/msvc6
Commit: fc74df23699bbe3226f5ccc344032c139cc06e6f
Parents: 34dfdaf
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Nov 4 16:02:31 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Nov 4 16:02:31 2012 +0100

----------------------------------------------------------------------
 core/Lucy/Search/QueryParser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/fc74df23/core/Lucy/Search/QueryParser.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/QueryParser.c b/core/Lucy/Search/QueryParser.c
index de2fc70..56152e6 100644
--- a/core/Lucy/Search/QueryParser.c
+++ b/core/Lucy/Search/QueryParser.c
@@ -37,6 +37,10 @@
 #include "Lucy/Search/TermQuery.h"
 #include "Lucy/Search/Query.h"
 
+#ifndef SIZE_MAX
+  #define SIZE_MAX ((size_t)-1)
+#endif
+
 #define SHOULD            LUCY_QPARSER_SHOULD
 #define MUST              LUCY_QPARSER_MUST
 #define MUST_NOT          LUCY_QPARSER_MUST_NOT