diff --git a/ChangeLog b/ChangeLog index 2e3ce57..23423ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ +2004-05-15 Rhys Weatherley + + * tools/gen-apply.c: fix a macro generation bug for Win32 systems. + 2004-05-14 Rhys Weatherley * include/jit/Makefile.am, include/jit/jit-objmodel-private.h, diff --git a/tools/gen-apply.c b/tools/gen-apply.c index 0bb1690..20ece7e 100644 --- a/tools/gen-apply.c +++ b/tools/gen-apply.c @@ -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");