]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
Fix a macro generation bug for Win32 systems.
authorRhys Weatherley <rweather@southern-storm.com.au>
Sat, 15 May 2004 10:21:34 +0000 (10:21 +0000)
committerRhys Weatherley <rweather@southern-storm.com.au>
Sat, 15 May 2004 10:21:34 +0000 (10:21 +0000)
ChangeLog
tools/gen-apply.c

index 2e3ce57732f5ef0e9fd7721876bc2caedce9ff25..23423caa7990147883d8ed317333c8ea0c675bfc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,8 @@
 
+2004-05-15  Rhys Weatherley  <rweather@southern-storm.com.au>
+
+       * tools/gen-apply.c: fix a macro generation bug for Win32 systems.
+
 2004-05-14  Rhys Weatherley  <rweather@southern-storm.com.au>
 
        * include/jit/Makefile.am, include/jit/jit-objmodel-private.h,
index 0bb1690fcc25a321f523eb88dfc4e336619b06ae..20ece7edfeb699a5408296315c4a27340dc65214 100644 (file)
@@ -1665,7 +1665,7 @@ void dump_apply_macros(void)
                printf("\t\t\tjit_memcpy((builder)->apply_args->word_regs + (builder)->word_used, (ptr), (size)); \\\n");
                printf("\t\t\t(builder)->word_used += __num_words; \\\n");
                printf("\t\t} \\\n");
-               printf("\t\telse if((builder)->word_used) < %s) \\\n", word_reg_limit);
+               printf("\t\telse if((builder)->word_used < %s) \\\n", word_reg_limit);
                printf("\t\t{ \\\n");
                printf("\t\t\tunsigned int __split = (%s - (builder)->word_used); \\\n", word_reg_limit);
                printf("\t\t\tjit_memcpy((builder)->apply_args->word_regs + (builder)->word_used, (ptr), __split * sizeof(jit_nint)); \\\n");
@@ -1707,7 +1707,7 @@ void dump_apply_macros(void)
                printf("\t\t\tjit_memcpy(&__temp, (builder)->apply_args->word_regs + (builder)->word_used, sizeof(__temp)); \\\n");
                printf("\t\t\t(builder)->word_used += __num_words; \\\n");
                printf("\t\t} \\\n");
-               printf("\t\telse if((builder)->word_used) < %s) \\\n", word_reg_limit);
+               printf("\t\telse if((builder)->word_used < %s) \\\n", word_reg_limit);
                printf("\t\t{ \\\n");
                printf("\t\t\tunsigned int __split = (%s - (builder)->word_used); \\\n", word_reg_limit);
                printf("\t\t\tjit_memcpy(&__temp, (builder)->apply_args->word_regs + (builder)->word_used, __split * sizeof(jit_nint)); \\\n");