pike.git/
src/
encode.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-11-05
2014-11-05 17:03:41 by Martin Nilsson <nilsson@opera.com>
0695b454d8977fb692782d0169a10f7cc09b36c8 (
9
lines) (+
8
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Address some warnings.
2443:
switch(bytecode->size_shift) { #define SIGNED_CHAR(X) X
+
#if SIZEOF_INT_TYPE > 4
+
#define DO_HIGH(X) (X)
+
#else
+
#define DO_HIGH(X) 0
+
#endif
+
/* The EMIT_BYTECODE2 macro will generate the warning * "comparison is always false due to limited range of data type" * if used on STR0. Thus, the need to have two macros here.
2460:
} else if (STR(bytecode)[e] == F_LINE) { \ current_line = \ ((unsigned INT32)STR(bytecode)[e+1]) | \
-
((INT_TYPE)STR(bytecode)[e+2])<<32;
\
+
DO_HIGH
((
(
INT_TYPE)STR(bytecode)[e+2])<<32
)
; \
} else if (!current_file) { \ decode_error(data, NULL, "Missing filename directive in " \ "byte code.\n"); \