fixed a warning.
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 30 Jun 2008 18:13:19 +0000 (18:13 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 30 Jun 2008 18:13:19 +0000 (18:13 +0000)
src/QuickThreads/md/setjmp.c

index 84a23d26918a0d2f5318b5dcb55150680cb525a9..23e40be596e2e590151f92976c5670382adbedcf 100644 (file)
@@ -17,9 +17,9 @@ struct helpdesc { qt_helper_t *hfn; qt_t *jb; void *old; void *new; };
 
 #ifdef __CYGWIN__
 # ifdef QT_GROW_DOWN
-#define SHIFTSP(pos) asm ( "mov %0, %%esp\n"::"m"((char*)pos-256));
+#define SHIFTSP(pos) {char *newpos=(char *)pos-256; asm ( "mov %0, %%esp\n"::"m"(newpos));}
 # else
-#define SHIFTSP(pos) asm ( "mov %0, %%esp\n"::"m"((char*)pos+256));
+#define SHIFTSP(pos) {char *newpos=(char *)pos+256; asm ( "mov %0, %%esp\n"::"m"(newpos));}
 # endif
 #else
 # ifdef QT_GROW_DOWN