ruby-changes:67173
From: Nobuyoshi <ko1@a...>
Date: Mon, 16 Aug 2021 18:32:48 +0900 (JST)
Subject: [ruby-changes:67173] 54199a3f5f (master): Use `VALUE` instead of `intptr_t`
https://git.ruby-lang.org/ruby.git/commit/?id=54199a3f5f From 54199a3f5f77f7aacfea37d2378e82f41c6a5510 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 16 Aug 2021 13:52:17 +0900 Subject: Use `VALUE` instead of `intptr_t` On emscripten `intptr_t`, `uintptr_t`, `ptrdiff_t` and so on are defined as `long`, but `PRIdPTR` and so on defined as `int`. --- tool/mk_builtin_loader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/mk_builtin_loader.rb b/tool/mk_builtin_loader.rb index 309ff61..6740ec5 100644 --- a/tool/mk_builtin_loader.rb +++ b/tool/mk_builtin_loader.rb @@ -322,7 +322,7 @@ def mk_builtin_header file https://github.com/ruby/ruby/blob/trunk/tool/mk_builtin_loader.rb#L322 f.puts %' fprintf(f, " const VALUE *argv = GET_EP() - lnum - VM_ENV_DATA_SIZE + 1 + %ld;\\n", index);' f.puts %' }' end - f.puts %' fprintf(f, " func f = (func)%"PRIdPTR"; /* == #{cfunc_name} */\\n", (intptr_t)#{cfunc_name});' + f.puts %' fprintf(f, " func f = (func)%"PRIuVALUE"; /* == #{cfunc_name} */\\n", (VALUE)#{cfunc_name});' f.puts %' fprintf(f, " val = f(ec, self#{argv});\\n");' f.puts %'}' f.puts -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/