Skip to content

Commit e4e9ab5

Browse files
committed
fix: remove floor from the system.cpp
1 parent b9bbd21 commit e4e9ab5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/runtime/uv/system.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ extern "C" LEAN_EXPORT lean_obj_res lean_uv_uptime(obj_arg /* w */) {
5252
return lean_io_result_mk_error(lean_decode_uv_error(result, nullptr));
5353
}
5454

55-
uint64_t uptime_int = (uint64_t)floor(uptime);
56-
lean_object* lean_uptime = lean_box_uint64(uptime_int);
55+
lean_object* lean_uptime = lean_box_uint64((uint64_t)uptime);
5756

5857
return lean_io_result_mk_ok(lean_uptime);
5958
}

0 commit comments

Comments
 (0)