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 17:31:42 UTC

[lucy-commits] [1/6] git commit: refs/heads/msvc6 - Don't use SIZE_MAX in utf8proc.h

Updated Branches:
  refs/heads/msvc6 ded3ae77f -> 2bebc84ff


Don't use SIZE_MAX in utf8proc.h


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

Branch: refs/heads/msvc6
Commit: 2bebc84ffc2725ec0422695eccfaf48b62abf20a
Parents: 4c9341a
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Nov 4 17:27:27 2012 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Sun Nov 4 17:27:27 2012 +0100

----------------------------------------------------------------------
 modules/unicode/utf8proc/utf8proc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/2bebc84f/modules/unicode/utf8proc/utf8proc.h
----------------------------------------------------------------------
diff --git a/modules/unicode/utf8proc/utf8proc.h b/modules/unicode/utf8proc/utf8proc.h
index 98b6ca3..f3f0154 100644
--- a/modules/unicode/utf8proc/utf8proc.h
+++ b/modules/unicode/utf8proc/utf8proc.h
@@ -80,7 +80,7 @@ extern "C" {
 #endif
 
 #ifndef SSIZE_MAX
-#define SSIZE_MAX ((size_t)SIZE_MAX/2)
+#define SSIZE_MAX ((size_t)-1/2)
 #endif
 
 #define UTF8PROC_NULLTERM  (1<<0)