1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
rhe 2f551849c4 Use PRIuSIZE format specifier for size_t values
Use PRIuSIZE instead of PRIdSIZE. This fixes the exception message shown
on too large xmalloc2. This commit also fixes other incorrect use of
PRIdSIZE in other functions; though most of them are debug print.

* gc.c (heap_extend_pages, get_envparam_size, ruby_malloc_size_overflow,
  gc_profile_dump_on): Use PRIuSIZE instead of PRIdSIZE as the passed
  value is size_t, not ssize_t.

* iseq.c (get_line_info, rb_iseq_disasm_insn): Ditto.

* sprintf.c (rb_str_format): Ditto.

* thread_win32.c (native_thread_create): Ditto.

* vm.c (get_param): Ditto.

* ext/objspace/objspace_dump.c (dump_append_string_content,
  dump_object): Ditto.

* ext/socket/raddrinfo.c (host_str, port_str): Ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-13 12:33:13 +00:00
..
-test-
bigdecimal Use https instead of http in some URLs 2016-09-11 10:33:36 +00:00
cgi/escape
continuation
coverage
date
dbm
digest
etc
fcntl
fiber
fiddle
gdbm
io Use https instead of http in some URLs 2016-09-11 10:33:36 +00:00
json
mathn
nkf
objspace Use PRIuSIZE format specifier for size_t values 2016-09-13 12:33:13 +00:00
openssl
pathname
psych * ext/psych/psych.gemspec, lib/rdoc/rdoc.gemspec: Use file list instead of 2016-09-08 05:33:59 +00:00
pty
racc/cparse
rbconfig/sizeof
readline
ripper
sdbm
socket Use PRIuSIZE format specifier for size_t values 2016-09-13 12:33:13 +00:00
stringio
strscan
syslog
win32
win32ole
zlib
.document
extmk.rb
Setup
Setup.atheos
Setup.nacl
Setup.nt