You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/03/27 20:54:17 UTC
[lucy-commits] svn commit: r1086004 -
/incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Memory.c
Author: marvin
Date: Sun Mar 27 18:54:17 2011
New Revision: 1086004
URL: http://svn.apache.org/viewvc?rev=1086004&view=rev
Log:
Fix a faulty conditional in the probing for alloca().
Modified:
incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Memory.c
Modified: incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Memory.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Memory.c?rev=1086004&r1=1086003&r2=1086004&view=diff
==============================================================================
--- incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Memory.c (original)
+++ incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Memory.c Sun Mar 27 18:54:17 2011
@@ -88,7 +88,7 @@ Memory_run(void)
}
/* Windows. */
- if (!has_alloca || has_builtin_alloca) {
+ if (!(has_alloca || has_builtin_alloca)) {
sprintf(code_buf, alloca_code, "malloc.h", "alloca");
if (CC_test_compile(code_buf, strlen(code_buf))) {
has_malloc_h = true;
@@ -97,7 +97,7 @@ Memory_run(void)
ConfWriter_append_conf("#define chy_alloca alloca\n");
}
}
- if (!has_alloca || has_builtin_alloca) {
+ if (!(has_alloca || has_builtin_alloca)) {
sprintf(code_buf, alloca_code, "malloc.h", "_alloca");
if (CC_test_compile(code_buf, strlen(code_buf))) {
has_malloc_h = true;