Advertisement

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

Started by August 15, 2014 02:52 AM
1 comment, last by WitchLord 10 years, 3 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?


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

Advertisement

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