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/05/30 22:48:54 UTC
[lucy-commits] svn commit: r1129361 -
/incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Integers.c
Author: marvin
Date: Mon May 30 20:48:53 2011
New Revision: 1129361
URL: http://svn.apache.org/viewvc?rev=1129361&view=rev
Log:
Fix a declaration-after-statement problem that caused MSVC to fail a probe
incorrectly in standard C mode (i.e. without the /TP flag to force C++).
Modified:
incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Integers.c
Modified: incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Integers.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Integers.c?rev=1129361&r1=1129360&r2=1129361&view=diff
==============================================================================
--- incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Integers.c (original)
+++ incubator/lucy/trunk/charmonizer/src/Charmonizer/Probe/Integers.c Mon May 30 20:48:53 2011
@@ -56,8 +56,8 @@ static char literal64_code[] =
QUOTE( #define big 9000000000000000000%s )
QUOTE( int main() )
QUOTE( { )
- QUOTE( Charm_Setup; )
QUOTE( int truncated = (int)big; )
+ QUOTE( Charm_Setup; )
QUOTE( printf("%%d\n", truncated); )
QUOTE( return 0; )
QUOTE( } );