Bug 925729 - SpiderMonkey: Fix memset size. r=me

This commit is contained in:
Dan Gohman 2013-10-26 18:34:27 -07:00
parent 104fc08720
commit 7b4eb026e6

View File

@ -2421,7 +2421,7 @@ EmitSwitch(ExclusiveContext *cx, BytecodeEmitter *bce, ParseNode *pn)
return false;
}
}
memset(intmap, 0, size_t(intmap_bitlen) / JS_BITMAP_NBITS);
memset(intmap, 0, size_t(intmap_bitlen) / CHAR_BIT);
}
if (JS_TEST_BIT(intmap, i)) {
switchOp = JSOP_CONDSWITCH;