mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +00:00
Apply some touchups
This commit is contained in:
parent
9f149e1de3
commit
2f3bd90216
139 changed files with 1188 additions and 1154 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue