Skip to content

Commit 994c0c4

Browse files
authored
Update RteTarget.cpp using 0x0 instead of 0
addressing #2068
1 parent d100d30 commit 994c0c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/rtemodel/src/RteTarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,10 +1781,10 @@ std::string RteTarget::GenerateMemoryRegionContent(const std::vector<RteItem*> m
17811781
if (id == "__RAM0") {
17821782
oss << "// <i> Contains uninitialized RAM, Stack, and Heap" << RteUtils::LF_STRING;
17831783
}
1784-
oss << "#define " << id << "_BASE " << (unused ? "0" : start) << RteUtils::LF_STRING;
1784+
oss << "#define " << id << "_BASE " << (unused ? "0x0" : start) << RteUtils::LF_STRING;
17851785
oss << "// <o> Region size [bytes] <0x0-0xFFFFFFFF:8>" << RteUtils::LF_STRING;
17861786
oss << "// <i> Defines size of memory region." << (unused ? "" : " Default: " + size) << RteUtils::LF_STRING;
1787-
oss << "#define " << id << "_SIZE " << (unused ? "0" : size) << RteUtils::LF_STRING;
1787+
oss << "#define " << id << "_SIZE " << (unused ? "0x0" : size) << RteUtils::LF_STRING;
17881788
oss << "// </h>" << RteUtils::LF_STRING;
17891789
oss << RteUtils::LF_STRING;
17901790
return oss.str();

0 commit comments

Comments
 (0)