mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Clean up MSVC warning [C4312] conversion from type to type * of greater size
This commit is contained in:
parent
265e64f6fc
commit
31d0eb16f8
21 changed files with 39 additions and 39 deletions
|
|
@ -631,7 +631,7 @@ DefineEngineMethod( GuiListBoxCtrl, addItem, S32, (const char* newItem, const ch
|
|||
else if(elementCount == 1)
|
||||
{
|
||||
U32 objId = dAtoi( color );
|
||||
return object->addItem( newItem, (void*)objId );
|
||||
return object->addItem( newItem, (void*)(uintptr_t)objId );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1523,7 +1523,7 @@ void GuiListBoxCtrl::_mirror()
|
|||
|
||||
if ( !found )
|
||||
{
|
||||
addItem( _makeMirrorItemName( curObj ), (void*)curId );
|
||||
addItem( _makeMirrorItemName( curObj ), (void*)(uintptr_t)curId );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue