Jump to content
  • Advertisement
Sign in to follow this  

Visual Studio 2012: angelscript x64 Debug compiler error fix

This topic is 1665 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!