mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-28 04:35:33 +00:00
Bug 672450 - C4233/C4267 warning for jsobj.h, vm/String.h and jsatom.h. r=luke
This commit is contained in:
parent
7abc217fd4
commit
379ca2fc94
@ -115,7 +115,7 @@ struct DefaultHasher<jsid>
|
||||
typedef jsid Lookup;
|
||||
static HashNumber hash(const Lookup &l) {
|
||||
JS_ASSERT(l == js_CheckForStringIndex(l));
|
||||
return JSID_BITS(l);
|
||||
return HashNumber(JSID_BITS(l));
|
||||
}
|
||||
static bool match(const jsid &id, const Lookup &l) {
|
||||
JS_ASSERT(l == js_CheckForStringIndex(l));
|
||||
|
@ -594,7 +594,7 @@ struct JSObject : js::gc::Cell {
|
||||
|
||||
/* gc::FinalizeKind */ unsigned finalizeKind() const;
|
||||
|
||||
uint32 numSlots() const { return capacity; }
|
||||
uint32 numSlots() const { return uint32(capacity); }
|
||||
|
||||
size_t slotsAndStructSize(uint32 nslots) const;
|
||||
size_t slotsAndStructSize() const { return slotsAndStructSize(numSlots()); }
|
||||
|
@ -583,7 +583,7 @@ class JSExternalString : public JSFixedString
|
||||
intN externalType() const {
|
||||
JS_ASSERT(isExternal());
|
||||
JS_ASSERT(d.s.u2.externalType < TYPE_LIMIT);
|
||||
return d.s.u2.externalType;
|
||||
return intN(d.s.u2.externalType);
|
||||
}
|
||||
|
||||
void *externalClosure() const {
|
||||
|
Loading…
Reference in New Issue
Block a user