Bug 1047301: Silence Clang warning about signed/unsigned comparison in SIMD.cpp; r=jandem

This commit is contained in:
Benjamin Bouvier 2014-08-04 09:20:35 +02:00
parent 2b1a58480d
commit 346fb91740

View File

@ -675,7 +675,8 @@ FuncShuffle(JSContext *cx, unsigned argc, Value *vp)
// bits select the first lane, the next log2(L) the second, and so on.
const uint32_t SELECT_SHIFT = FloorLog2(V::lanes);
const uint32_t SELECT_MASK = V::lanes - 1;
const uint32_t MAX_MASK_VALUE = uint32_t(pow(double(V::lanes), double(V::lanes))) - 1;
const int32_t MAX_MASK_VALUE = int32_t(pow(double(V::lanes), double(V::lanes))) - 1;
JS_ASSERT(MAX_MASK_VALUE > 0);
Elem result[V::lanes];
if (args.length() == 2) {