Skip to content

Commit bcdd202

Browse files
committed
[[ Cleanup ]] MCCdata::load(): Use a reinterpret_cast from integer to void *.
This will work correctly even when sizeof(int) != sizeof(void *).
1 parent 80363c2 commit bcdd202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/cdata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ IO_stat MCCdata::load(IO_handle stream, MCObject *parent, uint32_t version)
9393
{
9494
uint1 set;
9595
stat = IO_read_uint1(&set, stream);
96-
data = (void *)(set ? 1 : 0);
96+
data = reinterpret_cast<void *>(set ? 1 : 0);
9797
return stat;
9898
}
9999
else

0 commit comments

Comments
 (0)