Advertisement

sizeof and int on 64-bit

Started by February 24, 2011 06:57 AM
3 comments, last by WitchLord 14 years ago
Just going through my initial compile:
- Xcode but tweaked for combined ppc, i386 and x86_64
- GCC 4.0 on Mac OS X 10.6.6

Got several warnings for x86_64 on calls to asMemClear() and assignments from sizeof() to int:

implicit conversion shortens 64-bit value into a 32-bit value
Should int be a long or size_t instead?
It should be a size_t. I'll have it fixed. Thanks.

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 fixed this in revision 816.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Thanks!

Found the same warning again, but for a different reason (and on i386/ppc): In add_on/scriptfile/scriptfile.cpp line 503 and 509 in CScriptFile::ReadFloat(), buf[n] is casted to asQWORD but I think it should be asUINT.

Thanks. Fixed in revision 817.

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