diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:43 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:43 +0000 |
commit | 3ff43ea93b8c0fc8dbeb9571c7361a91d8e078b5 (patch) | |
tree | 347372d0614dafc89b1aa90e510d9f8785840158 /vm_dump.c | |
parent | b6141f386a7bdea0216968b5d42a4ccd7551ae2d (diff) | |
download | ruby-3ff43ea93b8c0fc8dbeb9571c7361a91d8e078b5.tar.gz |
"%z" printf format specifier is a C99ism
PRIxSIZE is also. But shimmed in ruby.h
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -827,10 +827,11 @@ print_machine_register(size_t reg, const char *reg_name, int col_count, int max_ char buf[64]; #ifdef __LP64__ - ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%016zx", reg_name, reg); + ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%016" PRIxSIZE, reg_name, reg); #else - ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%08zx", reg_name, reg); + ret = snprintf(buf, sizeof(buf), " %3.3s: 0x%08" PRIxSIZE, reg_name, reg); #endif +#undef zx if (col_count + ret > max_col) { fputs("\n", stderr); col_count = 0; |