diff --git a/deps/v8/src/x64/macro-assembler-x64.cc b/deps/v8/src/x64/macro-assembler-x64.cc index 614f67b0aae..3fcfccec079 100644 --- a/deps/v8/src/x64/macro-assembler-x64.cc +++ b/deps/v8/src/x64/macro-assembler-x64.cc @@ -699,7 +699,7 @@ void MacroAssembler::SmiTryAddConstant(Register dst, Smi* constant, Label* on_not_smi_result) { // Does not assume that src is a smi. - ASSERT_EQ(static_cast(1), kSmiTagMask); + ASSERT_EQ(static_cast(1), static_cast(kSmiTagMask)); ASSERT_EQ(0, kSmiTag); ASSERT(!dst.is(kScratchRegister)); ASSERT(!src.is(kScratchRegister)); diff --git a/src/file.cc b/src/file.cc index e9cda568f80..5215d07cb9c 100644 --- a/src/file.cc +++ b/src/file.cc @@ -88,7 +88,7 @@ static Local BuildStatsObject(struct stat * s) { stats->Set(RDEV_SYMBOL, Integer::New(s->st_rdev)); /* total size, in bytes */ - stats->Set(SIZE_SYMBOL, Integer::New(s->st_size)); + stats->Set(SIZE_SYMBOL, Integer::NewFromUnsigned(s->st_size)); /* blocksize for filesystem I/O */ stats->Set(BLKSIZE_SYMBOL, Integer::New(s->st_blksize));