🎉 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!

Visual Studio 2012: angelscript x64 Debug compiler error fix

Started by
0 comments, last by WitchLord 10 years, 8 months ago

Compiling angelscript x64 Debug in Visual Studio 2012 returns an error in as_gc.cpp on line 154:


1>..\..\source\as_gc.cpp(154): error C2220: warning treated as error - no 'object' file generated
1>..\..\source\as_gc.cpp(154): warning C4267: 'initializing' : conversion from 'size_t' to 'asUINT', possible loss of data

I managed to fix this by putting an explicit conversion to asUINT before gcNewObjects.GetLength();

Happy coding!

Will

Advertisement

Thanks. This has already been fixed in the SVN revision

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