icculus / mojoAL

An SDL2-based implementation of OpenAL in a single C file.
https://icculus.org/mojoAL/
zlib License
158 stars 21 forks source link

fix MSVC warning C4244, ALfloat <- double #22

Closed ericoporto closed 1 year ago

ericoporto commented 1 year ago

this is the only remaining warning, a parenthesis is needed because the cast takes priority and applies first and later the multiplication with window casts all to double, and then the result gets cast again to ALfloat when assigning.

(no need to merge, feel free to just add the missing parenthesis on main)