You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build the ps2dev toolchain on mingw64 because eventually mingw32 will be deprecated sometime in the future as it's already considered as Legacy Environment and I've got these errors.
src/romimg.c: In function 'GetExtInfoStat':
src/romimg.c:95:87: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
95 | struct ExtInfoFieldEntry *ExtInfoEntry = (struct ExtInfoFieldEntry *)((RMIMG_PTRCAST)ImageStat->image + fd->ExtInfoOffset);
| ^
src/romimg.c:95:58: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
95 | struct ExtInfoFieldEntry *ExtInfoEntry = (struct ExtInfoFieldEntry *)((RMIMG_PTRCAST)ImageStat->image + fd->ExtInfoOffset);
| ^
src/romimg.c: In function 'CreateBlankROMImg':
src/romimg.c:180:25: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
180 | memcpy((void *)((RMIMG_PTRCAST)ResetFile->ExtInfoData + sizeof(struct ExtInfoFieldEntry)), &ROMImg->date, ExtInfoEntry->ExtLength);
| ^
src/romimg.c: In function 'LoadROMImg':
src/romimg.c:310:74: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
310 | ImageStat.ROMFS_start = (void *)((RMIMG_PTRCAST)ImageStat.image + DataStartOffset);
| ^
src/romimg.c:310:65: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
310 | ImageStat.ROMFS_start = (void *)((RMIMG_PTRCAST)ImageStat.image + DataStartOffset);
| ^
src/romimg.c:349:92: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
349 | memcpy(file->ExtInfoData, (void *)((RMIMG_PTRCAST)ImageStat.image + RomDirFileFd.ExtInfoOffset + ExtInfoOffset), RomDir->ExtInfoEntrySize);
| ^
src/romimg.c:349:83: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
349 | memcpy(file->ExtInfoData, (void *)((RMIMG_PTRCAST)ImageStat.image + RomDirFileFd.ExtInfoOffset + ExtInfoOffset), RomDir->ExtInfoEntrySize);
| ^
src/romimg.c:351:89: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
351 | memcpy(file->FileData, (void *)((RMIMG_PTRCAST)ImageStat.image + offset), RomDir->size);
| ^
src/romimg.c:351:80: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
351 | memcpy(file->FileData, (void *)((RMIMG_PTRCAST)ImageStat.image + offset), RomDir->size);
|
The text was updated successfully, but these errors were encountered:
I'm trying to build the ps2dev toolchain on mingw64 because eventually mingw32 will be deprecated sometime in the future as it's already considered as Legacy Environment and I've got these errors.
The text was updated successfully, but these errors were encountered: