Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Please the compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Apr 6, 2012
1 parent 40b7302 commit 1042a8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/v8_typed_array.cc
Expand Up @@ -390,6 +390,8 @@ class TypedArray {
case v8::kExternalDoubleArray: return "Float64Array";
}
abort();
// Please the compiler
return "";
}
};

Expand Down Expand Up @@ -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 <>
Expand Down

0 comments on commit 1042a8d

Please sign in to comment.