Skip to content

Commit 01bde62

Browse files
committed
Apply suggestions from code review
1 parent fde55b0 commit 01bde62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-dependencies/js-compute-runtime/js-compute-builtins.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4405,7 +4405,7 @@ bool process_network_io(JSContext *cx) {
44054405

44064406
bool math_random(JSContext *cx, unsigned argc, Value *vp) {
44074407
uint32_t storage;
4408-
random_get((int32_t)(&storage), sizeof(storage));
4408+
random_get(reinterpret_cast<int32_t>(&storage), sizeof(storage));
44094409
double newvalue = static_cast<double>(storage) / std::pow(2.0, 32.0);
44104410

44114411
CallArgs args = CallArgsFromVp(argc, vp);

0 commit comments

Comments
 (0)