Skip to content

Commit

Permalink
Bugfix: String(unsigned char, ...) ignoring width, pad parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mikee47 committed Jun 28, 2024
1 parent 65c533b commit 515877e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sming/Wiring/WString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ String::String(char c) : String()
String::String(unsigned char value, unsigned char base, unsigned char width, char pad) : String()
{
char buf[8 + 8 * sizeof(value)];
ultoa(value, buf, base);
ultoa_wp(value, buf, base, width, pad);
*this = buf;
}

Expand Down

0 comments on commit 515877e

Please sign in to comment.