ruby-changes:49436
From: shyouhei <ko1@a...>
Date: Tue, 2 Jan 2018 16:59:31 +0900 (JST)
Subject: [ruby-changes:49436] shyouhei:r61545 (trunk): "%z" printf format specifier is a C99ism
shyouhei 2018-01-02 15:41:43 +0900 (Tue, 02 Jan 2018) New Revision: 61545 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61545 Log: "%z" printf format specifier is a C99ism PRIxSIZE is also. But shimmed in ruby.h Modified files: trunk/vm_dump.c Index: vm_dump.c =================================================================== --- vm_dump.c (revision 61544) +++ vm_dump.c (revision 61545) @@ -827,10 +827,11 @@ print_machine_register(size_t reg, const https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L827 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/