Skip to content

Commit

Permalink
mcmc upstream bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dormando committed Aug 7, 2024
1 parent 054e00b commit fa55419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/mcmc/mcmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ MCMC_STATIC int mcmc_toktou64(const char *t, size_t len, uint64_t *out) {
while (len--) {
char num = pos[0] - '0';
if (num > -1 && num < 10) {
uint32_t lim = (UINT64_MAX - num) / 10;
uint64_t lim = (UINT64_MAX - num) / 10;
if (sum > lim) {
return MCMC_TOKTO_ERANGE;
}
Expand Down

0 comments on commit fa55419

Please sign in to comment.