3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-04 10:20:24 +00:00

Making stringf() use the format conversion specs as-is without widening them.

And make sure our fast-path for `%d` and `%u` narrows to `int` correctly.

Resolves #5260
This commit is contained in:
Robert O'Callahan 2025-07-31 10:19:44 +00:00
parent 262b00d5e5
commit ffd52a0d8e
3 changed files with 76 additions and 32 deletions

View file

@ -62,7 +62,7 @@ enum ConversionSpecifier : uint8_t
CONVSPEC_UNSIGNED_INT,
// Consumes a "double"
CONVSPEC_DOUBLE,
// Consumes a "const char*"
// Consumes a "const char*" or other string type
CONVSPEC_CHAR_PTR,
// Consumes a "void*"
CONVSPEC_VOID_PTR,