# HG changeset patch # User Rob Landley # Date 1197683858 21600 # Node ID f5e9e8615e4733619982548a9f814eed75c0163b # Parent eca8c8d45d5594af7be35972494cffd86890ba69 Michael Lewis had a problem with floating point on Windows, suggested a minor tweak to fix it which should be a NOP on Linux. diff -r eca8c8d45d55 -r f5e9e8615e47 tcc.c --- a/tcc.c Fri Dec 14 19:35:54 2007 -0600 +++ b/tcc.c Fri Dec 14 19:57:38 2007 -0600 @@ -4154,7 +4154,7 @@ #ifdef TCC_TARGET_I386 /* for x86, we need to pop the FP stack */ if (v == TREG_ST0) { - o(0xd9dd); /* fstp %st(1) */ + o(0xd8dd); /* fstp %st(1) */ } else #endif if (v == VT_JMP || v == VT_JMPI) {