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 | 76091d43881866f78824b88d48840afce9862bb8 (patch) | |
tree | 347372d0614dafc89b1aa90e510d9f8785840158 | |
parent | f03146dd70cf21efcb9f0e432b4c3bf1e3cf1e5c (diff) |
"%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
-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; |