Advertisement

Wrong reference cast

Started by April 06, 2011 04:50 PM
2 comments, last by WitchLord 13 years, 7 months ago
Revision 822. Maybe this fixed already, but i post to be sure.

This code compiles without errors and warnings:

void func()
{
float a;
uint8 b;
int c;
funcA(c, a, b);
}

void funcA(float& a, uint8& b, int& c)
{
}
I'll look into it. Thanks.

Are you using asEP_ALLOW_UNSAFE_REFERENCES? Otherwise you should have gotten an error on the declaration of funcA as well, as you didn't specify 'in' or 'out' on the references.

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
Yes, i use asEP_ALLOW_UNSAFE_REFERENCES.
I've fixed this bug in revision 838.



Thanks,

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