Skip to content

Commit

Permalink
Bake uint32_t in predefinedCode
Browse files Browse the repository at this point in the history
  • Loading branch information
ShabbyX committed Jul 26, 2024
1 parent e66c7be commit d94a91a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/json_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@
static void print_size_t(const size_t* o, const std::string& s, bool commaNeeded=true)
{
PRINT_SPACE
_OUT << \"\\\"\" << s << \"\\\"\" << \" : \" << static_cast<%s>(*o) << (commaNeeded ? \",\" : \"\") << std::endl;\\
_OUT << \"\\\"\" << s << \"\\\"\" << \" : \" << static_cast<uint32_t>(*o) << (commaNeeded ? \",\" : \"\") << std::endl;\\
}
static void print_size_t(size_t o, const std::string& s, bool commaNeeded=true)
{
PRINT_SPACE
_OUT << \"\\\"\" << s << \"\\\"\" << \" : \" << static_cast<%s>(o) << (commaNeeded ? \",\" : \"\") << std::endl;\\
_OUT << \"\\\"\" << s << \"\\\"\" << \" : \" << static_cast<uint32_t>(o) << (commaNeeded ? \",\" : \"\") << std::endl;\\
}
"""

Expand Down Expand Up @@ -517,7 +517,7 @@ def beginFile(self, genOpts):

write(headerGuardTop, file=self.outFile, end='')
write(copyright, file=self.outFile)
write(predefinedCode % ("uint32_t", "uint32_t"), file=self.outFile)
write(predefinedCode, file=self.outFile)
self.printBaseTypes()
if self.isCTS:
write(encodeBase64CodeCTS, file=self.outFile)
Expand Down

0 comments on commit d94a91a

Please sign in to comment.