Skip to content

Commit c5c4c43

Browse files
committed
fixed numberic literal types
1 parent 67d52b7 commit c5c4c43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/objects/database/checkpoint.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ NAN_METHOD(Database::Checkpoint) {
2626
}
2727

2828
if (checkpointed_frames < 0 || total_frames < 0) {
29-
info.GetReturnValue().Set(Nan::New<v8::Number>(0));
29+
info.GetReturnValue().Set(Nan::New<v8::Number>(0.0));
3030
} else if (total_frames == 0) {
31-
info.GetReturnValue().Set(Nan::New<v8::Number>(1));
31+
info.GetReturnValue().Set(Nan::New<v8::Number>(1.0));
3232
} else {
3333
info.GetReturnValue().Set(Nan::New<v8::Number>(
3434
static_cast<double>(checkpointed_frames) / static_cast<double>(total_frames)

0 commit comments

Comments
 (0)