Skip to content

Commit

Permalink
COM_Rand() fix cast
Browse files Browse the repository at this point in the history
  • Loading branch information
vsonnier committed Jan 9, 2025
1 parent 6f09255 commit ea6d5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Quake/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -3207,5 +3207,5 @@ int32_t COM_Rand ()
xorshiro_state[0] = rotl (s0, 26) ^ s1 ^ (s1 << 9);
xorshiro_state[1] = rotl (s1, 13);

return (int)(result & COM_RAND_MAX);
return (int32_t)(result & COM_RAND_MAX);
}

0 comments on commit ea6d5eb

Please sign in to comment.