Commit 8c48a020 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Fix check

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 58e63d25
......@@ -11,6 +11,6 @@ checked_umul(unsigned int lhs, unsigned int rhs, unsigned int* res)
const uint64_t r = (uint64_t) lhs * (uint64_t) rhs;
*res = (unsigned int) r;
return r <= UINT_MAX;
return r > UINT_MAX;
}
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment