Apply some touchups

This commit is contained in:
Justine Tunney 2021-02-07 06:11:44 -08:00
parent 9f149e1de3
commit 2f3bd90216
139 changed files with 1188 additions and 1154 deletions

View file

@ -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);
}