From d94a91aaa2bf0e533aa88ff7a10fc14b1306b440 Mon Sep 17 00:00:00 2001 From: Shahbaz Youssefi Date: Fri, 26 Jul 2024 10:39:07 -0400 Subject: [PATCH] Bake uint32_t in predefinedCode --- scripts/json_generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/json_generator.py b/scripts/json_generator.py index f055f27de..848a3e4ed 100644 --- a/scripts/json_generator.py +++ b/scripts/json_generator.py @@ -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(*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(o) << (commaNeeded ? \",\" : \"\") << std::endl;\\ } """ @@ -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)