summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2022-11-12 17:43:40 -0500
committerGitHub <noreply@github.com>2022-11-12 17:43:40 -0500
commitdcd98d81cc80a5387f01837c542bb5d15f1e152c (patch)
tree3d19163c57dfa54c47722b0f20ac5aa78f0bcba5
parent2b5ced906972348fa4e14ba63c3fd1ac680051af (diff)
parentd6777bfad83930e1dc065683441b8a9e218bc05e (diff)
Merge pull request #270 from louist103/gccSegment
Add uintptr_t cast to room files
-rw-r--r--ZAPD/ZRoom/Commands/SetRoomList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ZAPD/ZRoom/Commands/SetRoomList.cpp b/ZAPD/ZRoom/Commands/SetRoomList.cpp
index 134be08..3e68202 100644
--- a/ZAPD/ZRoom/Commands/SetRoomList.cpp
+++ b/ZAPD/ZRoom/Commands/SetRoomList.cpp
@@ -105,7 +105,7 @@ std::string RomFile::GetBodySourceCode() const
if (!isFirst)
declaration += "\n";
- declaration += StringHelper::Sprintf("\t{ _%sSegmentRomStart, _%sSegmentRomEnd },",
+ declaration += StringHelper::Sprintf("\t{ (uintptr_t)_%sSegmentRomStart, (uintptr_t)_%sSegmentRomEnd },",
roomName.c_str(), roomName.c_str());
isFirst = false;
}