Permalink
Browse files

Please the compiler

  • Loading branch information...
1 parent 40b7302 commit 1042a8d887aef494435ad1e9da3c33b602f246be @piscisaureus piscisaureus committed Apr 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 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 <>

0 comments on commit 1042a8d

Please sign in to comment.