h4tr3d / laser-tank

Port of the Laser Tank game to Linux initially written for KolibriOS: http://habrahabr.ru/post/248001
4 stars 3 forks source link

Error: cast from pointer to smaller type 'Dword' on MacOS X (64bit) #10

Closed dlancer closed 9 years ago

dlancer commented 9 years ago

Error on make:

LaserTank.cpp:1270:78: error: cast from pointer to smaller type 'Dword' (aka 'unsigned int') loses information

kos_DefineAndDrawWindow(10, 40, 384 + 9, 384 + 25, 0x33, 0x444444, 0, 0, (Dword)header);

Latest MacOS X use clang compiler by default, so this is probably related. In my macosx port I just remove this cast:

kos_DefineAndDrawWindow(10, 40, 384 + 9, 384 + 25, 0x33, 0x444444, 0, 0, header);
h4tr3d commented 9 years ago

First form must be used only on KOS