Sign in to follow this  

Visual Studio 2012: angelscript x64 Debug compiler error fix

Recommended Posts

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!



Edited by Salty Boyscouts

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this