Commit 973bd672 authored by Arthur O'Dwyer's avatar Arthur O'Dwyer
Browse files

uthash.h: Swap multiplicands to put the widest ones first.

It was reported in #195 that Visual Studio 2019, on a 32-bit platform,
produces this warning:

    Warning C26451
    Arithmetic overflow: Using operator '*' on a 4 byte value
    and then casting the result to a 8 byte value. Cast the
    value to the wider type before calling operator '*' to
    avoid overflow (io.2).

I'm not 100% sure that this tweak will silence the warning,
but I think it might, and at least it's harmless.

Fixes #195.
parent 15ad0427
Supports Markdown
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