dedmen / ArmaScriptCompiler

GNU General Public License v3.0
26 stars 12 forks source link

Print warning on scalar constant truncation #2

Open dedmen opened 5 years ago

dedmen commented 5 years ago

https://github.com/dedmen/ArmaScriptCompiler/blob/df64320b06cb4a21ea87e9cfec857000096acaf5/src/scriptCompiler.cpp#L235

If the value needs to be truncated to fit into a float, and there is a loss of precision, print a warning.