Browse Source

Fix compiler warnings where sizeof(int) != sizeof(void *)

cache-refactoring
Klaus Treichel 15 years ago
parent
commit
bf08959874
  1. 5
      ChangeLog
  2. 4
      jit/jit-compile.c

5
ChangeLog

@ -1,3 +1,8 @@
2009-10-31 Klaus Treichel <ktreichel@web.de>
* jit/jit-compile.c (_JIT_RESULT_TO_OBJECT, _JIT_RESULT_FROM_OBJECT):
Fix compiler warnings on systems where sizeof(int) != sizeof(void *)
2009-10-30 Aleksey Demakov <ademakov@gmail.com>
* include/jit/jit-function.h, jit/jit-function.c

4
jit/jit-compile.c

@ -50,8 +50,8 @@ typedef struct
} _jit_compile_t;
#define _JIT_RESULT_TO_OBJECT(x) ((void *) ((int) (x) - JIT_RESULT_OK))
#define _JIT_RESULT_FROM_OBJECT(x) ((int) ((void *) (x)) + JIT_RESULT_OK)
#define _JIT_RESULT_TO_OBJECT(x) ((void *) ((jit_nint) (x) - JIT_RESULT_OK))
#define _JIT_RESULT_FROM_OBJECT(x) ((jit_nint) ((void *) (x)) + JIT_RESULT_OK)
/*
* This exception handler overrides a user-defined handler during compilation.

Loading…
Cancel
Save