Browse Source

Please the compiler

v0.8.7-release
Bert Belder 13 years ago
parent
commit
1042a8d887
  1. 4
      src/v8_typed_array.cc

4
src/v8_typed_array.cc

@ -390,6 +390,8 @@ class TypedArray {
case v8::kExternalDoubleArray: return "Float64Array";
}
abort();
// Please the compiler
return "";
}
};
@ -485,7 +487,7 @@ int valueToCType(v8::Handle<v8::Value> value) {
template <>
float valueToCType(v8::Handle<v8::Value> value) {
return value->NumberValue();
return static_cast<float>(value->NumberValue());
}
template <>

Loading…
Cancel
Save