JGRennison / OpenTTD-patches

OpenTTD - http://www.openttd.org/ - with additional patches
Other
545 stars 126 forks source link

[Bug]: `'initializing'`: conversion from `'u64'` to `'u32'`, possible loss of data #664

Closed James103 closed 4 days ago

James103 commented 4 months ago

Version of OpenTTD

PR https://github.com/JGRennison/OpenTTD-patches/pull/663

Expected result

No such warnings

Actual result

When compiling JGRPP on Windows (windows-latest / x86, windows-latest / x64, windows-2019 / x86 or windows-2019 / x64), the following warning is emitted:

'initializing': conversion from 'u64' to 'u32', possible loss of data

https://github.com/JGRennison/OpenTTD-patches/blob/230eaabb5ce004c2687b630aea6c5090e936ffaa/src/3rdparty/monocypher/monocypher.cpp#L881

Steps to reproduce

Compile JGRPP on Windows (windows-latest / x86, windows-latest / x64, windows-2019 / x86 or windows-2019 / x64).

JGRennison commented 4 days ago

Should be fixed in recent releases