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/04/22 14:44:32 UTC
[lucy-commits] svn commit: r1328869 - /lucy/trunk/core/Lucy/Test/Util/TestMemory.c
Author: nwellnhof
Date: Sun Apr 22 12:44:31 2012
New Revision: 1328869
URL: http://svn.apache.org/viewvc?rev=1328869&view=rev
Log:
Make sure that SIZE_MAX is defined in TestMemory.c
Modified:
lucy/trunk/core/Lucy/Test/Util/TestMemory.c
Modified: lucy/trunk/core/Lucy/Test/Util/TestMemory.c
URL: http://svn.apache.org/viewvc/lucy/trunk/core/Lucy/Test/Util/TestMemory.c?rev=1328869&r1=1328868&r2=1328869&view=diff
==============================================================================
--- lucy/trunk/core/Lucy/Test/Util/TestMemory.c (original)
+++ lucy/trunk/core/Lucy/Test/Util/TestMemory.c Sun Apr 22 12:44:31 2012
@@ -21,6 +21,10 @@
#include "Lucy/Test.h"
#include "Lucy/Test/Util/TestMemory.h"
+#ifndef SIZE_MAX
+ #define SIZE_MAX ((size_t)-1)
+#endif
+
static void
test_oversize__growth_rate(TestBatch *batch) {
bool_t success = true;