🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Script string concatenation operators don't have overloads for <u>int64

Started by
1 comment, last by WitchLord 9 years, 10 months ago

The following code does not print the correct value:

const int64 test = -9223372036854775808;
print("" + test);
The following code does:
print(formatInt(test, ""));
Looking at RegisterStdString_Native(), it doesn't look like there are any overloads for int64 and uint64.. so using those script operations silently results in unexpected behavior.
Was there a reason for omitting these overloads, or just an oversight?

Advertisement


Was there a reason for omitting these overloads, or just an oversight?

It was just an oversight. I'll have it corrected.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

I've corrected this in revision 1995.

Regards,

Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement