pike.git/
src/
svalue.h
Branch:
Tag:
Non-build tags
All tags
No tags
2014-01-12
2014-01-12 02:07:06 by Tobias S. Josefowitz <tobij@tobij.de>
3635f824cc13883a1c09c59a195fc644358f487c (
9
lines) (+
9
/-
0
)
[
Show
|
Annotate
]
Branch:
8.0
svalue: prevent shift overflow when building typefield
847:
TYPE_FIELD hint, struct processing *p);
+
static INLINE TYPE_FIELD BITOF(struct svalue sv) {
+
if (TYPEOF(sv) >= sizeof(TYPE_FIELD) * 8) {
+
return BIT_MIXED | BIT_UNFINISHED;
+
}
+
+
return 1 << TYPEOF(sv);
+
}
+
#define gc_cycle_check_without_recurse gc_mark_without_recurse #define gc_cycle_check_weak_without_recurse gc_mark_without_recurse