Skip to content

Commit

Permalink
64bit conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
MSaito committed May 13, 2020
1 parent d43bbee commit c631879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinymt/tinymt64.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ inline static uint64_t tinymt64_generate_uint64(tinymt64_t * random) {
*/
inline static double tinymt64_generate_double(tinymt64_t * random) {
tinymt64_next_state(random);
return (tinymt64_temper(random) >> 11) * TINYMT64_MUL;
return (double)(tinymt64_temper(random) >> 11) * TINYMT64_MUL;
}

/**
Expand Down

0 comments on commit c631879

Please sign in to comment.