Skip to content

Commit c531506

Browse files
committed
rt: rand.rs expects rust_next() to return uint32_t, not size_t
1 parent 172c29f commit c531506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/rust_builtin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ rand_new_seeded2(rust_vec_box** seed) {
171171
return rand_new_seeded(*seed);
172172
}
173173

174-
extern "C" CDECL size_t
174+
extern "C" CDECL uint32_t
175175
rand_next(randctx *rctx) {
176176
return isaac_rand(rctx);
177177
}

0 commit comments

Comments
 (0)