Apply some touchups
This commit is contained in:
@@ -25,10 +25,10 @@
|
||||
static size_t sbufi_;
|
||||
static char sbufs_[2][256];
|
||||
|
||||
nodiscard testonly char *testlib_formatint(intmax_t x) {
|
||||
nodiscard testonly char *testlib_formatint(intptr_t x) {
|
||||
char *str = sbufi_ < ARRAYLEN(sbufs_) ? sbufs_[sbufi_++] : malloc(256);
|
||||
char *p = str;
|
||||
p += sprintf(p, "%jd\t(or %#jx", x, x);
|
||||
p += sprintf(p, "%ld\t(or %#lx", x, x);
|
||||
if (0 <= x && x < 256) {
|
||||
p += sprintf(p, " or %#`c", (unsigned char)x);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user