mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00
Bug 542054: Fix warning spam in jstypedarray.cpp (unsigned/signed comparison, control reaches end of non-void function) r=vlad
This commit is contained in:
parent
39bd4a58b4
commit
a766c6ed36
@ -802,7 +802,7 @@ class TypedArrayTemplate
|
||||
NativeType *dest = static_cast<NativeType*>(data);
|
||||
|
||||
if (ar->isDenseArray()) {
|
||||
JS_ASSERT(ar->fslots[JSSLOT_ARRAY_LENGTH] == len);
|
||||
JS_ASSERT(ar->fslots[JSSLOT_ARRAY_LENGTH] == (jsval)len);
|
||||
|
||||
jsval *src = ar->dslots;
|
||||
|
||||
@ -1215,6 +1215,7 @@ TypedArrayConstruct(JSContext *cx, jsint atype, uintN argc, jsval *argv, jsval *
|
||||
|
||||
default:
|
||||
JS_NOT_REACHED("shouldn't have gotten here");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user