Project

General

Profile

Misc #17829 ยป ruby-x64-mingw32-clang-miniruby-Wshorten-64-to-32.log

xtkoba (Tee KOBAYASHI), 04/26/2021 04:20 PM

 
compiling ../main.c
compiling ../dmydln.c
generating id.h
id.h updated
generating miniprelude.c
miniprelude.c updated
compiling ../miniinit.c
compiling ../dmyext.c
making ../array.rbinc
/usr/bin/ruby --disable=gems ../tool/gen_dummy_probes.rb ../probes.d > probes.dmyh
making dummy probes.h
compiling ../array.c
In file included from ../array.c:22:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../array.c:582:58: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long shift = RARRAY_CONST_PTR_TRANSIENT(ary) - RARRAY_CONST_PTR_TRANSIENT(shared_root);
~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../array.c:2168:53: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rofs = (rptr >= optr && rptr < optr + olen) ? rptr - optr : -1;
~ ~~~~~^~~~~~
../array.c:6029:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
hash_size = RHASH_SIZE(hash);
~ ^~~~~~~~~~~~~~~~
../array.c:6113:11: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
n = p - RARRAY_CONST_PTR_TRANSIENT(ary);
~ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../array.c:6514:21: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long j2 = j = ptr_result[i];
~ ^~~~~~~~~~~~~
../include/ruby/internal/core/rarray.h:241:42: note: expanded from macro 'RARRAY_PTR_USE_TRANSIENT'
RBIMPL_RARRAY_STMT(1, ary, ptr_name, expr)
^~~~
../include/ruby/internal/core/rarray.h:229:5: note: expanded from macro 'RBIMPL_RARRAY_STMT'
expr; \
^~~~
../include/ruby/internal/core/rarray.h:236:42: note: expanded from macro 'RARRAY_PTR_USE'
RBIMPL_RARRAY_STMT(0, ary, ptr_name, expr)
^~~~
../include/ruby/internal/core/rarray.h:229:5: note: expanded from macro 'RBIMPL_RARRAY_STMT'
expr; \
^~~~
../array.c:6660:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
i = unused - used;
~ ~~~~~~~^~~~~~
7 warnings generated.
making ../ast.rbinc
compiling ../ast.c
compiling ../bignum.c
In file included from ../bignum.c:33:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../bignum.c:1676:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
wds = ALLOCV_N(BDIGIT, work, wn);
~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:1748:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
wds = ALLOCV_N(BDIGIT, work, wn);
~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:1954:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
wds = ALLOCV_N(BDIGIT, work, wn);
~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:2694:46: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
yyds = ALLOCV_N(BDIGIT, tmpyz, yn+zn);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:2698:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
yyds = alloc_y ? ALLOCV_N(BDIGIT, tmpyz, yn) : rds;
~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:2699:53: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
zds = alloc_z ? ALLOCV_N(BDIGIT, tmpyz, zn) : qds;
~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:2708:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
zds = ALLOCV_N(BDIGIT, tmpyz, zn);
~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:3042:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long i = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:3060:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long n = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:3205:40: warning: implicit conversion loses integer precision: 'uintptr_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
if (POSFIXABLE(n)) return LONG2FIX(n);
~~~~~~~~ ^
../bignum.c:3212:37: warning: implicit conversion loses integer precision: 'intptr_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
if (FIXABLE(n)) return LONG2FIX(n);
~~~~~~~~ ^
../bignum.c:3891:36: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
uds = ALLOCV_N(BDIGIT, tmpuv, 2*num_bdigits);
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:4564:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
s1 = shift_numdigits;
~ ^~~~~~~~~~~~~~~
../bignum.c:4566:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
xn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:4583:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
s1 = shift_numdigits;
~ ^~~~~~~~~~~~~~~
../bignum.c:4896:41: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
result = rb_usascii_str_new(0, 1+numwords);
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
../include/ruby/internal/intern/string.h:228:36: note: expanded from macro 'rb_usascii_str_new'
rb_usascii_str_new) ((str), (len)))
^~~
../bignum.c:4903:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
result = rb_usascii_str_new(0, numwords);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
../include/ruby/internal/intern/string.h:228:36: note: expanded from macro 'rb_usascii_str_new'
rb_usascii_str_new) ((str), (len)))
^~~
../bignum.c:4984:41: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
wds = ALLOCV_N(BDIGIT, tmpw, xn + wn);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../bignum.c:5253:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long i = (bigtrunc(x), BIGNUM_LEN(x)), lo = 0, bits;
~ ~~~~~~~~~~~^~~~~~~~~~~~~~~
../bignum.c:5561:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long n = BIGNUM_LEN(z);
~ ^~~~~~~~~~~~~
../bignum.c:5589:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
xn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:5590:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
yn = BIGNUM_LEN(y);
~ ^~~~~~~~~~~~~
../bignum.c:5620:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
xn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:5716:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
xn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:5881:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
xn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:5908:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
xn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:5909:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
yn = BIGNUM_LEN(y);
~ ^~~~~~~~~~~~~
../bignum.c:5946:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long xn = BIGNUM_LEN(x), yn = BIGNUM_LEN(y);
~~ ^~~~~~~~~~~~~
../bignum.c:5946:35: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long xn = BIGNUM_LEN(x), yn = BIGNUM_LEN(y);
~~ ^~~~~~~~~~~~~
../bignum.c:6162:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
l = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:6186:9: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
l = BIGNUM_LEN(y);
~ ^~~~~~~~~~~~~
../bignum.c:6262:40: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
x = rb_big_pow(x, LONG2NUM(-yy));
~~~~~~~~ ^~~
../bignum.c:6417:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
zn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:6533:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
zn = BIGNUM_LEN(x);
~ ^~~~~~~~~~~~~
../bignum.c:6723:49: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
hash = rb_memhash(BDIGITS(x), sizeof(BDIGIT)*BIGNUM_LEN(x)) ^ BIGNUM_SIGN(x);
~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~
36 warnings generated.
compiling ../class.c
../class.c:1464:36: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new2(me_arg.list->num_entries);
~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~
../class.c:1701:36: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new2(me_arg.list->num_entries);
~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~
2 warnings generated.
compiling ../compar.c
generating opt_sc.inc
generating optunifs.inc
generating insns.inc
generating insns_info.inc
generating optinsn.inc
compiling ../compile.c
In file included from ../compile.c:29:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../compile.c:3910:59: warning: implicit conversion loses integer precision: 'const ID' (aka 'const unsigned long long') to 'long' [-Wshorten-64-to-32]
ADD_INSN2(ret, nd_line(node), toregexp, INT2FIX(node->nd_cflag), INT2FIX(cnt));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../node.h:234:21: note: expanded from macro 'nd_cflag'
#define nd_cflag u2.id
^
../include/ruby/internal/arithmetic/long.h:240:20: note: expanded from macro 'INT2FIX'
RB_INT2FIX(i))
~~~~~~~~~~ ^
../compile.c:252:62: note: expanded from macro 'ADD_INSN2'
new_insn_body(iseq, (line), BIN(insn), 2, (VALUE)(op1), (VALUE)(op2)))
^~~
../compile.c:10349:56: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_cat(dump->current_buffer->str, padding, size);
~~~~~~~~~~ ^~~~
../compile.c:10575:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'unsigned long' [-Wshorten-64-to-32]
ibf_dump_write(dump, bf->name, len);
~~~~~~~~~~~~~~ ^~~
../compile.c:11403:58: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE offset_list = rb_ary_tmp_new(dump->iseq_table->num_entries);
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../compile.c:11416:56: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
offsets[i] = NUM2UINT(RARRAY_AREF(offset_list, i));
~~~~~~~~~~~ ^
../compile.c:11420:83: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned long' [-Wshorten-64-to-32]
header->iseq_list_offset = ibf_dump_write(dump, offsets, sizeof(ibf_offset_t) * size);
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../compile.c:11588:46: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
encindex = RUBY_ENCINDEX_BUILTIN_MAX + ibf_dump_object(dump, rb_str_new2(enc_name));
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../compile.c:11639:21: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
regexp.srcstr = ibf_load_small_value(load, &offset);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../compile.c:11698:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long len = RHASH_SIZE(obj);
~~~ ^~~~~~~~~~~~~~~
../compile.c:11770:5: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned long' [-Wshorten-64-to-32]
IBF_WP(d, BDIGIT, len);
^~~~~~~~~~~~~~~~~~~~~~
../compile.c:10399:67: note: expanded from macro 'IBF_WP'
#define IBF_WP(b, type, n) ibf_dump_write(dump, (b), sizeof(type) * (n))
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~
../compile.c:11792:33: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long len = strlen(name) + 1;
~~~ ~~~~~~~~~~~~~^~~
../compile.c:12064:51: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE offset_list = rb_ary_tmp_new(obj_table->num_entries);
~~~~~~~~~~~~~~ ~~~~~~~~~~~^~~~~~~~~~~
../compile.c:12079:65: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ibf_offset_t offset = NUM2UINT(RARRAY_AREF(offset_list, i));
~~~~~~~~~~~ ^
14 warnings generated.
compiling ../complex.c
In file included from ../complex.c:24:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../complex.c:1955:41: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
buf = ALLOCV_N(char, tmp, strlen(s) + 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
2 warnings generated.
compiling ../cont.c
compiling ../debug.c
compiling ../debug_counter.c
making ../dir.rbinc
compiling ../dir.c
../dir.c:832:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
path = rb_external_str_new_with_enc(name, namlen, dirp->enc);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~
../dir.c:1170:31: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
d = rb_str_subseq(d, 0, pend - path);
~~~~~~~~~~~~~ ~~~~~^~~~~~
../dir.c:1506:29: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
tmp = rb_enc_str_new(path, strlen(path), enc);
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../include/ruby/encoding.h:150:25: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new((str), (len), (enc)) \
~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../dir.c:2118:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
newrdp->d_namlen = namlen;
~ ^~~~~~
../dir.c:2579:48: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
buf = replace_real_basename(buf, pathlen + (dirsep != 0), enc,
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~^~~~~~~~~~~~~~~
../dir.c:2778:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
shift = (lbrace-s);
~ ~~~~~~^~
../dir.c:3172:17: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long len = strlen(pattern);
~~~ ^~~~~~~~~~~~~~~
7 warnings generated.
compiling ../dln_find.c
compiling ../encoding.c
../encoding.c:1892:45: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new2(enc_table->names->num_entries);
~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
1 warning generated.
compiling ../enum.c
In file included from ../enum.c:18:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
1 warning generated.
compiling ../enumerator.c
In file included from ../enumerator.c:27:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
In file included from ../enumerator.c:28:
In file included from ../internal/range.h:12:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
2 warnings generated.
generating known_errors.inc
known_errors.inc updated
making ../warning.rbinc
compiling ../error.c
../error.c:1116:33: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_exc_new(etype, s, strlen(s));
~~~~~~~~~~ ^~~~~~~~~
1 warning generated.
compiling ../eval.c
In file included from ../eval.c:57:
../eval_error.c:96:57: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (ptr > beg) rb_write_error2(beg, ptr - beg);
~~~~~~~~~~~~~~~ ~~~~^~~~~
../eval_error.c:100:41: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
rb_write_error2(cc, strlen(cc));
~~~~~~~~~~~~~~~ ^~~~~~~~~~
../eval_error.c:107:48: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_write_error2(beg, ptr - beg + 1);
~~~~~~~~~~~~~~~ ~~~~~~~~~~^~~
../eval_error.c:115:42: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_write_error2(beg, ptr - beg);
~~~~~~~~~~~~~~~ ~~~~^~~~~
../eval_error.c:177:53: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
write_warnq(str, emesg, einfo, tail - einfo);
~~~~~~~~~~~ ~~~~~^~~~~~~
../eval_error.c:197:61: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
write_warnq(str, emesg, tail, einfo+elen-tail);
~~~~~~~~~~~ ~~~~~~~~~~^~~~~
../eval_error.c:207:71: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
write_warnq(str, emesg, einfo, tail ? tail-einfo : elen);
~~~~~~~~~~~ ~~~~^~~~~~
../eval_error.c:217:60: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
write_warnq(str, emesg, einfo, tail-einfo);
~~~~~~~~~~~ ~~~~^~~~~~
../eval_error.c:346:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = p - (msg = buff);
~ ~~^~~~~~~~~~~~~~
9 warnings generated.
compiling ../file.c
../file.c:2885:34: warning: implicit conversion loses integer precision: 'const time_t' (aka 'const long long') to 'long' [-Wshorten-64-to-32]
tvbuf[0].tv_sec = tsp[0].tv_sec;
~ ~~~~~~~^~~~~~
../file.c:2887:34: warning: implicit conversion loses integer precision: 'const time_t' (aka 'const long long') to 'long' [-Wshorten-64-to-32]
tvbuf[1].tv_sec = tsp[1].tv_sec;
~ ~~~~~~~^~~~~~
../file.c:3569:14: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
dirlen = strlen(dir);
~ ^~~~~~~~~~~
../file.c:4212:41: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long testnamelen = unresolved_firstsep - unresolved;
~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../file.c:4224:46: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long len = lastsep ? lastsep - resolved_names : 0;
~~~ ~~~~~~~~^~~~~~~~~~~~~~~~
../file.c:4287:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
link_prefixlen = link_names - link_prefix;
~ ~~~~~~~~~~~^~~~~~~~~~~~~
../file.c:4342:65: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
resolved = rb_str_subseq(unresolved_path, 0, path_names - ptr);
~~~~~~~~~~~~~ ~~~~~~~~~~~^~~~~
../file.c:4350:57: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
resolved = rb_str_subseq(basedir, 0, basedir_names - ptr);
~~~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~
../file.c:4358:54: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
resolved = rb_str_subseq(curdir, 0, curdir_names - ptr);
~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~
../file.c:4365:27: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
prefixlen = ++ptr - prefixptr;
~ ~~~~~~^~~~~~~~~~~
../file.c:4618:29: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
n = ntfs_tail(p, end, enc) - p;
~ ~~~~~~~~~~~~~~~~~~~~~~~^~~
../file.c:4626:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (e) f = e - p;
~ ~~^~~
../file.c:4685:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
if (!(f = rmext(p, f, n, fp, RSTRING_LEN(fext), enc))) {
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../file.c:4796:29: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_cat(dirname, top, p - top);
~~~~~~~~~~ ~~^~~~~
../file.c:4800:34: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
dirname = rb_str_new(name, p - name);
~~~~~~~~~~~~~~~~~~~^~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../file.c:4869:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
*len = p - e;
~ ~~^~~
../file.c:4913:38: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
extname = rb_str_subseq(fname, e - name, len); /* keep the dot, too! */
~~~~~~~~~~~~~ ~~^~~~~~
../file.c:5010:31: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(result, tail - name);
~~~~~~~~~~~~~~ ~~~~~^~~~~~
18 warnings generated.
making ../gc.rbinc
compiling ../gc.c
In file included from ../gc.c:93:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
In file included from ../gc.c:98:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
../gc.c:4118:25: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return LONG2NUM((SIGNED_VALUE)obj);
~~~~~~~~ ^~~~~~~~~~~~~~~~~
../gc.c:5684:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
n = end - start;
~ ~~~~^~~~~~~
4 warnings generated.
compiling ../hash.c
In file included from ../hash.c:30:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../hash.c:1197:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return keys - keys_start;
~~~~~~ ~~~~~^~~~~~~~~~~~
../hash.c:1217:19: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return values - values_start;
~~~~~~ ~~~~~~~^~~~~~~~~~~~~~
../hash.c:2989:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return INT2FIX(RHASH_SIZE(hash));
~~~~~~~~^~~~~~~~~~~~~~~~~
../include/ruby/internal/arithmetic/long.h:240:20: note: expanded from macro 'INT2FIX'
RB_INT2FIX(i))
~~~~~~~~~~ ^
../hash.c:3271:55: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
VALUE pairs = rb_ary_tmp_new(RHASH_SIZE(hash) * 2);
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~
../hash.c:3405:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new_capa(RHASH_SIZE(hash));
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
../hash.c:3560:35: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE keys = rb_ary_new_capa(size);
~~~~~~~~~~~~~~~ ^~~~
../hash.c:3575:23: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_ary_set_len(keys, size);
~~~~~~~~~~~~~~ ^~~~
../hash.c:3606:30: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
values = rb_ary_new_capa(size);
~~~~~~~~~~~~~~~ ^~~~
../hash.c:3623:25: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_ary_set_len(values, size);
~~~~~~~~~~~~~~ ^~~~
../hash.c:4279:41: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new_capa(RHASH_SIZE(hash) * 2);
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~
../hash.c:4293:41: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new_capa(RHASH_SIZE(hash) * 2);
~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~
../hash.c:4844:33: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return env_enc_str_new(ptr, strlen(ptr), enc);
~~~~~~~~~~~~~~~ ^~~~~~~~~~~
../hash.c:4857:29: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return env_str_new(ptr, strlen(ptr));
~~~~~~~~~~~ ^~~~~~~~~~~
../hash.c:5367:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE e = raw ? rb_utf8_str_new(p, l) : env_enc_str_new(p, l, enc);
~~~~~~~~~~~~~~~~~~~^~
../include/ruby/internal/intern/string.h:234:33: note: expanded from macro 'rb_utf8_str_new'
rb_utf8_str_new) ((str), (len)))
^~~
../hash.c:5367:72: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE e = raw ? rb_utf8_str_new(p, l) : env_enc_str_new(p, l, enc);
~~~~~~~~~~~~~~~ ^
../hash.c:5542:42: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_ary_push(ary, env_str_new(*env, s-*env));
~~~~~~~~~~~ ~^~~~~
../hash.c:5900:33: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_buf_cat(str, *env, s-*env);
~~~~~~~~~~~~~~ ~^~~~~
../hash.c:5933:55: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_ary_push(ary, rb_assoc_new(env_str_new(*env, s-*env),
~~~~~~~~~~~ ~^~~~~
../hash.c:6092:17: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long len = strlen(s);
~~~ ^~~~~~~~~
../hash.c:6129:17: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long len = strlen(s);
~~~ ^~~~~~~~~
../hash.c:6131:68: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE result = rb_assoc_new(rb_str_new(*env, s-*env-1), obj);
~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../hash.c:6169:17: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long len = strlen(s);
~~~ ^~~~~~~~~
../hash.c:6171:33: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
str = env_str_new(*env, s-*env-1);
~~~~~~~~~~~ ~~~~~~^~
../hash.c:6193:44: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_hash_aset(hash, env_str_new(*env, s-*env),
~~~~~~~~~~~ ~^~~~~
../hash.c:6329:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE key = env_str_new(*env, s-*env);
~~~~~~~~~~~ ~^~~~~
26 warnings generated.
making ../prelude.rbinc
compiling ../inits.c
making ../io.rbinc
compiling ../io.c
In file included from ../io.c:127:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../io.c:1553:18: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
return length;
~~~~~~ ^~~~~~
../io.c:1575:17: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
r = rb_mutex_synchronize(fptr->write_lock, io_binwrite_string, (VALUE)&arg);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../io.c:1578:10: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
r = io_binwrite_string((VALUE)&arg);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../io.c:2532:49: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
rb_str_cat(result, closed+1, strlen(closed)-1);
~~~~~~~~~~ ~~~~~~~~~~~~~~^~
../io.c:2541:33: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
rb_str_cat(result, closed, strlen(closed));
~~~~~~~~~~ ^~~~~~~~~~~~~~
../io.c:2585:10: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
c = rb_read_internal(fptr->fd, ptr+offset, n);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../io.c:2640:18: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
return length;
~~~~~~ ^~~~~~
../io.c:3181:9: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
n = write(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/win32.h:156:25: note: expanded from macro 'write'
#define write(f, b, s) rb_w32_write(f, b, s)
^~~~~~~~~~~~~~~~~~~~~
../io.c:3382:29: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (e) pending = e - p + 1;
~ ~~~~~~^~~
../io.c:3446:39: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
if (!read_buffered_data(buf, cnt - i, fptr)) /* must not fail */
~~~~~~~~~~~~~~~~~~ ~~~~^~~
../io.c:3666:26: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(str, p - s);
~~~~~~~~~~~~~~ ~~^~~
../io.c:4612:11: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
r = rb_write_internal2(fptr->fd, ds, dp-ds);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../io.c:4614:11: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
r = rb_write_internal(fptr->fd, ds, dp-ds);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../io.c:5218:9: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
n = rb_write_internal(fptr->fd, ptr, len);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../io.c:5800:20: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = p ? (p++ - estr) : (long)strlen(estr);
~ ~~~~^~~~~~
../io.c:8088:27: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
rb_write_error2(mesg, strlen(mesg));
~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
../io.c:11674:41: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
rb_str_resize(buf, ss > 0 ? ss : 0);
~~~~~~~~~~~~~ ^~
../io.c:11809:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
str = rb_str_buf_new(len);
~~~~~~~~~~~~~~ ^~~
../io.c:11810:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_resize(str,len);
~~~~~~~~~~~~~ ^~~
../io.c:11811:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
read_buffered_data(RSTRING_PTR(str), len, src_fptr);
~~~~~~~~~~~~~~~~~~ ^~~
../io.c:13054:76: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
ARGF.inplace = !suffix ? Qfalse : !*suffix ? Qnil : rb_str_new(suffix, strlen(suffix));
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
22 warnings generated.
generating node_name.inc
compiling ../iseq.c
../iseq.c:1939:31: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ret = rb_inspect(INT2FIX(op));
~~~~~~~~^~~
../include/ruby/internal/arithmetic/long.h:240:20: note: expanded from macro 'INT2FIX'
RB_INT2FIX(i))
~~~~~~~~~~ ^
../iseq.c:2069:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(str, end - beg + 1);
~~~~~~~~~~~~~~ ~~~~~~~~~~^~~
../iseq.c:2738:42: warning: implicit conversion loses integer precision: 'const VALUE' (aka 'const unsigned long long') to 'unsigned long' [-Wshorten-64-to-32]
VALUE l = register_label(labels_table, iseq_body->param.opt_table[j]);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../iseq.c:2785:44: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned long' [-Wshorten-64-to-32]
unsigned long idx = nseq - iseq_original + *seq;
~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../iseq.c:2791:28: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_ary_push(ary, INT2FIX(*seq));
~~~~~~~~^~~~~
../include/ruby/internal/arithmetic/long.h:240:20: note: expanded from macro 'INT2FIX'
RB_INT2FIX(i))
~~~~~~~~~~ ^
../iseq.c:2813:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_ary_push(ary, INT2FIX(is - iseq_body->is_entries));
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/arithmetic/long.h:240:20: note: expanded from macro 'INT2FIX'
RB_INT2FIX(i))
~~~~~~~~~~ ^
../iseq.c:2857:45: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned long' [-Wshorten-64-to-32]
unsigned long idx = nseq - iseq_original + pos;
~~~ ~~~~~~~~~~~~~~~~~~~~~^~~~~
7 warnings generated.
compiling ../load.c
../load.c:328:18: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
plen = e - name - len;
~ ~~~~~~~~~^~~~~
../load.c:367:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
VALUE p = loaded_feature_path(s, strlen(s), fp->name, fp->len,
~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
../load.c:387:9: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
elen = strlen(ext);
~ ^~~~~~~~~~~
../load.c:388:24: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
len = strlen(feature) - elen;
~ ~~~~~~~~~~~~~~~~^~~~~~
../load.c:392:8: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
len = strlen(feature);
~ ^~~~~~~~~~~~~~~
../load.c:891:40: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
tmp = rb_str_subseq(fname, 0, ext - RSTRING_PTR(fname));
~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~
6 warnings generated.
compiling ../marshal.c
In file included from ../marshal.c:26:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
In file included from ../marshal.c:32:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
../marshal.c:712:12: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
w_long(num, arg->arg);
~~~~~~ ^~~
../marshal.c:732:12: warning: implicit conversion loses integer precision: 'st_data_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
w_long(num, arg->arg);
~~~~~~ ^~~
../marshal.c:959:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
w_long(rb_hash_size_num(obj), arg);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
../marshal.c:1795:44: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
d = load_mantissa(d, e, RSTRING_LEN(str) - (e - ptr));
~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../marshal.c:1854:27: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(str, dst - ptr);
~~~~~~~~~~~~~~ ~~~~^~~~~
7 warnings generated.
compiling ../math.c
In file included from ../math.c:23:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
1 warning generated.
compiling ../memory_view.c
making mjit_config.h
compiling ../mjit.c
generating mjit_compile.inc
compiling ../mjit_compile.c
compiling ../node.c
making ../numeric.rbinc
compiling ../numeric.c
In file included from ../numeric.c:35:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../numeric.c:905:50: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_usascii_str_new(minf+pos, strlen(minf)-pos);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
../include/ruby/internal/intern/string.h:228:36: note: expanded from macro 'rb_usascii_str_new'
rb_usascii_str_new) ((str), (len)))
^~~
../numeric.c:1992:10: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
bytes = rb_big_size(num);
~ ^~~~~~~~~~~~~~~~
../numeric.c:2059:18: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return LONG2NUM(x);
~~~~~~~~ ^
../numeric.c:2090:18: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return LONG2NUM(x);
~~~~~~~~ ^
../numeric.c:2114:18: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return LONG2NUM(x);
~~~~~~~~ ^
../numeric.c:2138:18: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return LONG2NUM(x);
~~~~~~~~ ^
../numeric.c:3403:36: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return rb_usascii_str_new(b, e - b);
~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/intern/string.h:228:36: note: expanded from macro 'rb_usascii_str_new'
rb_usascii_str_new) ((str), (len)))
^~~
8 warnings generated.
making ../kernel.rbinc
compiling ../object.c
In file included from ../object.c:30:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
In file included from ../object.c:32:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
../object.c:2266:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_name_err_raise_str(rb_fstring_new(message, message_len),
~~~~~~~~~~~~~~ ^~~~~~~~~~~
../object.c:2497:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
id = rb_check_id_cstr(pbeg, len = p-pbeg, enc);
~ ~^~~~~
../object.c:2498:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beglen = pbeg-path;
~ ~~~~^~~~~
../object.c:2670:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
id = rb_check_id_cstr(pbeg, len = p-pbeg, enc);
~ ~^~~~~
../object.c:2671:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beglen = pbeg-path;
~ ~~~~^~~~~
../object.c:2830:44: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
id = rb_check_id_cstr(pbeg, len = p-pbeg, enc);
~ ~^~~~~
../object.c:2831:22: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beglen = pbeg-path;
~ ~~~~^~~~~
../object.c:3636:38: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
char *p = ALLOCV(v, (size_t)len + 1);
~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
10 warnings generated.
making ../pack.rbinc
compiling ../pack.c
../pack.c:657:27: warning: implicit conversion loses integer precision: 'long long' to 'unsigned long' [-Wshorten-64-to-32]
le = rb_uv_to_utf8(buf, l);
~~~~~~~~~~~~~ ^
../pack.c:741:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
buf = rb_str_new(NULL, numbytes);
~~~~~~~~~~~~~~~~~^~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../pack.c:1020:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = send - s;
~ ~~~~~^~~
../pack.c:1040:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (len > send - s) len = send - s;
~ ~~~~~^~~
../pack.c:1058:31: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (len > send-s) len = send-s;
~ ~~~~^~
../pack.c:1060:44: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
UNPACK_PUSH(rb_str_new(s, t-s));
~~~~~~~~~~~~~~~^~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../pack.c:950:20: note: expanded from macro 'UNPACK_PUSH'
VALUE item_val = (item);\
^~~~
../pack.c:1067:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (len > send - s) len = send - s;
~ ~~~~~^~~
../pack.c:1080:24: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = (send - s) * 8;
~ ~~~~~~~~~~~^~~
../pack.c:1101:24: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = (send - s) * 8;
~ ~~~~~~~~~~~^~~
../pack.c:1122:24: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = (send - s) * 2;
~ ~~~~~~~~~~~^~~
../pack.c:1145:24: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = (send - s) * 2;
~ ~~~~~~~~~~~^~~
../pack.c:1260:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(integer_size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:908:19: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
tmp_len = len-(send-s)/(sz); \
~ ~~~^~~~~~~~~~~~~~
../pack.c:1260:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(integer_size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:910:16: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
len = (send-s)/(sz); \
~ ~~~~~~~~^~~~~
../pack.c:1275:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(float));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:908:19: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
tmp_len = len-(send-s)/(sz); \
~ ~~~^~~~~~~~~~~~~~
../pack.c:1275:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(float));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:910:16: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
len = (send-s)/(sz); \
~ ~~~~~~~~^~~~~
../pack.c:1286:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(float));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:908:19: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
tmp_len = len-(send-s)/(sz); \
~ ~~~^~~~~~~~~~~~~~
../pack.c:1286:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(float));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:910:16: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
len = (send-s)/(sz); \
~ ~~~~~~~~^~~~~
../pack.c:1298:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(double));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:908:19: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
tmp_len = len-(send-s)/(sz); \
~ ~~~^~~~~~~~~~~~~~
../pack.c:1298:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(double));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:910:16: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
len = (send-s)/(sz); \
~ ~~~~~~~~^~~~~
../pack.c:1311:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(double));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:908:19: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
tmp_len = len-(send-s)/(sz); \
~ ~~~^~~~~~~~~~~~~~
../pack.c:1311:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(double));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:910:16: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
len = (send-s)/(sz); \
~ ~~~~~~~~^~~~~
../pack.c:1322:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(float));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:908:19: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
tmp_len = len-(send-s)/(sz); \
~ ~~~^~~~~~~~~~~~~~
../pack.c:1322:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(float));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:910:16: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
len = (send-s)/(sz); \
~ ~~~~~~~~^~~~~
../pack.c:1334:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(double));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:908:19: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
tmp_len = len-(send-s)/(sz); \
~ ~~~^~~~~~~~~~~~~~
../pack.c:1334:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
PACK_LENGTH_ADJUST_SIZE(sizeof(double));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../pack.c:910:16: note: expanded from macro 'PACK_LENGTH_ADJUST_SIZE'
len = (send-s)/(sz); \
~ ~~~~~~~~^~~~~
../pack.c:1346:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (len > send - s) len = send - s;
~ ~~~~~^~~
../pack.c:1348:20: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long alen = send - s;
~~~~ ~~~~~^~~
../pack.c:1359:55: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE buf = rb_str_new(0, (send - s)*3/4);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../pack.c:1414:59: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE buf = rb_str_new(0, (send - s + 3)*3/4); /* +3 is for skipping paddings */
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../pack.c:1488:27: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(buf, ptr - RSTRING_PTR(buf));
~~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~
../pack.c:1495:48: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE buf = rb_str_new(0, send - s);
~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../pack.c:1518:27: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(buf, ptr - RSTRING_PTR(buf));
~~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~
../pack.c:1519:31: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_buf_cat(buf, ss, send-ss);
~~~~~~~~~~~~~~ ~~~~^~~
../pack.c:1584:20: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
len = (send - s) / sizeof(char *);
~ ~~~~~~~~~~~^~~~~~~~~~~~~~~~
34 warnings generated.
generating parse.c
copying lex.c
compiling parse.c
In file included from ../parse.y:39:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../parse.y:5938:19: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = ptr_end - ptr;
~ ~~~~~~~~^~~~~
../parse.y:5985:16: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = ptr_end - ptr;
~ ~~~~~~~~^~~~~
../parse.y:6278:26: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (end) len = ++end - beg;
~ ~~~~~~^~~~~
../parse.y:6280:33: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return rb_str_subseq(s, beg - start, len);
~~~~~~~~~~~~~ ~~~~^~~~~~~
../parse.y:7376:36: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long len, offset = p->lex.pcur - p->lex.pbeg;
~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~
../parse.y:7432:48: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = p->lex.pcur - (p->lex.pbeg + offset) - quote;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
../parse.y:7596:21: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
n = p->lex.pend - (ptr + len);
~ ~~~~~~~~~~~~^~~~~~~~~~~~~
../parse.y:7784:32: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_cat(str, ptr, ptr_end - ptr);
~~~~~~~~~~ ~~~~~~~~^~~~~
../parse.y:7786:30: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
str = STR_NEW(ptr, ptr_end - ptr);
~~~~~~~~~~~~~~~~~~~~~^~~~~~
../parse.y:363:48: note: expanded from macro 'STR_NEW'
#define STR_NEW(ptr,len) rb_enc_str_new((ptr),(len),p->enc)
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../include/ruby/encoding.h:149:32: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new_static((str), (len), (enc)) : \
~~~~~~~~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../parse.y:7786:30: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
str = STR_NEW(ptr, ptr_end - ptr);
~~~~~~~~~~~~~~~~~~~~~^~~~~~
../parse.y:363:48: note: expanded from macro 'STR_NEW'
#define STR_NEW(ptr,len) rb_enc_str_new((ptr),(len),p->enc)
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../include/ruby/encoding.h:150:25: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new((str), (len), (enc)) \
~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../parse.y:8160:50: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (!(end = magic_comment_marker(beg, str + len - beg)))
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~^~~~~
../parse.y:8164:18: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = end - beg - 3;
~ ~~~~~~~~~~^~~
../parse.y:8225:10: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
n = end - beg;
~ ~~~~^~~~~
../parse.y:8233:12: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
n = vend - vbeg;
~ ~~~~~^~~~~~
../parse.y:8290:58: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
s = rb_str_new(beg, parser_encode_length(p, beg, str - beg));
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../parse.y:8290:58: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
s = rb_str_new(beg, parser_encode_length(p, beg, str - beg));
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~~
../include/ruby/internal/intern/string.h:215:25: note: expanded from macro 'rb_str_new'
RBIMPL_CONSTANT_P(len) ? \
^~~
../include/ruby/internal/constant_p.h:32:55: note: expanded from macro 'RBIMPL_CONSTANT_P'
# define RBIMPL_CONSTANT_P(expr) __builtin_constant_p(expr)
^~~~
../parse.y:8343:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'unsigned long' [-Wshorten-64-to-32]
return rb_rational_new(v, rb_int_positive_pow(10, fraclen));
~~~~~~~~~~~~~~~~~~~ ^~~~~~~
../parse.y:9150:56: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (!parser_magic_comment(p, p->lex.pcur, p->lex.pend - p->lex.pcur)) {
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~
../parse.y:12821:25: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long len = name_end - name;
~~~ ~~~~~~~~~^~~~~~
../parse.y:13326:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_long2int(p->lex.pcur - p->lex.pbeg),
~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~
21 warnings generated.
compiling ../proc.c
../proc.c:1473:40: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
index = (id % SYM_PROC_CACHE_SIZE) << 1;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
1 warning generated.
compiling ../process.c
In file included from ../process.c:100:
../hrtime.h:161:22: warning: implicit conversion loses integer precision: 'time_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
tv->tv_sec = (time_t)(*hrt / RB_HRTIME_PER_SEC);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../process.c:3014:49: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
envp_str = rb_str_buf_new(sizeof(char*) * (RHASH_SIZE(envtbl) + 1));
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
making ../ractor.rbinc
compiling ../ractor.c
In file included from ../ractor.c:13:
In file included from ../internal/rational.h:15:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
In file included from ../ractor.c:14:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
2 warnings generated.
compiling ../random.c
In file included from ../random.c:67:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../random.c:355:49: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
uint32_t *buf = ALLOCV_N(uint32_t, buf0, len+1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../random.c:374:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
buf = ALLOCV_N(uint32_t, buf0, len);
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../random.c:581:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
CryptGenRandom(prov, size, seed);
~~~~~~~~~~~~~~ ^~~~
../random.c:974:39: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
tmp = ALLOCV_N(uint32_t, vtmp, len*2);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../random.c:983:17: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
for (i = len-1; 0 <= i; i--) {
~ ~~~^~
../random.c:1168:47: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
uint32_t *tmp = ALLOCV_N(uint32_t, vtmp, len * 2);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../random.c:1176:39: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
obj_random_bytes(obj, rnd_array, len * sizeof(uint32_t));
~~~~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~
8 warnings generated.
compiling ../range.c
In file included from ../range.c:28:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
In file included from ../range.c:29:
In file included from ../internal/range.h:12:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
2 warnings generated.
compiling ../rational.c
In file included from ../rational.c:28:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
1 warning generated.
compiling ../re.c
../re.c:142:19: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return y - ys - m;
~~~~~~ ~~~~~~~^~~
../re.c:161:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return y - ys;
~~~~~~ ~~^~~~
../re.c:215:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return y - ys;
~~~~~~ ~~^~~~
../re.c:228:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return y - ys;
~~~~~~ ~~^~~~
../re.c:241:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return y - ys;
~~~~~~ ~~^~~~
../re.c:262:16: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return ys - y;
~~~~~~ ~~~^~~
../re.c:651:38: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_resize(str, RSTRING_LEN(str) - n);
~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~
../re.c:654:29: warning: implicit conversion loses integer precision: 'ptrdiff_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
rb_str_buf_cat(str, paren, n);
~~~~~~~~~~~~~~ ^
../re.c:767:65: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_ary_push(ary, rb_enc_str_new((const char *)name, name_end-name, regex->enc));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../include/ruby/encoding.h:149:32: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new_static((str), (len), (enc)) : \
~~~~~~~~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../re.c:767:65: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_ary_push(ary, rb_enc_str_new((const char *)name, name_end-name, regex->enc));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../include/ruby/encoding.h:150:25: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new((str), (len), (enc)) \
~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../re.c:808:62: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_hash_aset(hash, rb_str_new((const char*)name, name_end-name),ary);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../re.c:1007:38: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
rm->char_offset[i].beg = BEG(i);
~ ^~~~~~
../re.c:33:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../re.c:1008:38: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
rm->char_offset[i].end = END(i);
~ ^~~~~~
../re.c:34:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../re.c:1018:37: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pairs[num_pos++].byte_pos = BEG(i);
~ ^~~~~~
../re.c:33:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../re.c:1019:37: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pairs[num_pos++].byte_pos = END(i);
~ ^~~~~~
../re.c:34:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../re.c:1040:24: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
key.byte_pos = BEG(i);
~ ^~~~~~
../re.c:33:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../re.c:1044:24: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
key.byte_pos = END(i);
~ ^~~~~~
../re.c:34:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../re.c:1534:12: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return p - string;
~~~~~~ ~~^~~~~~~~
../re.c:1579:14: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
result = onig_search(reg,
~ ^~~~~~~~~~~~~~~~
../re.c:1661:14: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
result = onig_match(reg,
~ ^~~~~~~~~~~~~~~
../re.c:1740:13: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
start = BEG(nth);
~ ^~~~~~~~
../re.c:33:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../re.c:1742:11: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
end = END(nth);
~ ^~~~~~~~
../re.c:34:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../re.c:1776:48: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
str = rb_str_subseq(RMATCH(match)->str, 0, BEG(0));
~~~~~~~~~~~~~ ^~~~~~
../re.c:33:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../re.c:1804:11: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pos = END(0);
~ ^~~~~~
../re.c:34:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../re.c:1868:66: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE str = rb_str_subseq(target, regs->beg[i], regs->end[i]-regs->beg[i]);
~~~~~~~~~~~~~ ~~~~~~~~~~~~^~~~~~~~~~~~~
../re.c:1868:40: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
VALUE str = rb_str_subseq(target, regs->beg[i], regs->end[i]-regs->beg[i]);
~~~~~~~~~~~~~ ^~~~~~~~~~~~
../re.c:2141:60: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE key = rb_enc_str_new((const char *)name, name_end-name, regex->enc);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../include/ruby/encoding.h:149:32: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new_static((str), (len), (enc)) : \
~~~~~~~~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../re.c:2141:60: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
VALUE key = rb_enc_str_new((const char *)name, name_end-name, regex->enc);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../include/ruby/encoding.h:150:25: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new((str), (len), (enc)) \
~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../re.c:2234:42: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
arg[back_refs[i]].len = name_end - name;
~ ~~~~~~~~~^~~~~~
../re.c:2639:34: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_buf_cat(buf, pbeg, p-pbeg);
~~~~~~~~~~~~~~ ~^~~~~
../re.c:3381:16: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
pos = beg - RSTRING_PTR(str);
~ ~~~~^~~~~~~~~~~~~~~~~~
../re.c:3576:26: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_resize(tmp, t - RSTRING_PTR(tmp));
~~~~~~~~~~~~~ ~~^~~~~~~~~~~~~~~~~~
../re.c:3828:29: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
val = rb_str_buf_new(ss-p);
~~~~~~~~~~~~~~ ~~^~
../re.c:3830:38: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, p, ss-p, str_enc);
~~~~~~~~~~~~~~~~~~ ~~^~
../re.c:3835:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, ss, s-ss, str_enc);
~~~~~~~~~~~~~~~~~~ ~^~~
../re.c:3877:42: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, ss, s-ss, str_enc);
~~~~~~~~~~~~~~~~~~ ~^~~
../re.c:3886:48: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, RSTRING_PTR(src), BEG(0), src_enc);
~~~~~~~~~~~~~~~~~~ ^~~~~~
../re.c:33:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../re.c:3890:71: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, RSTRING_PTR(src)+END(0), RSTRING_LEN(src)-END(0), src_enc);
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~^~~~~~~
../re.c:3904:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, ss, s-ss, str_enc);
~~~~~~~~~~~~~~~~~~ ~^~~
../re.c:3911:63: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, RSTRING_PTR(src)+BEG(no), END(no)-BEG(no), src_enc);
~~~~~~~~~~~~~~~~~~ ~~~~~~~^~~~~~~~
../re.c:3917:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_enc_str_buf_cat(val, p, e-p, str_enc);
~~~~~~~~~~~~~~~~~~ ~^~
41 warnings generated.
compiling ../regcomp.c
compiling ../regenc.c
compiling ../regerror.c
compiling ../regexec.c
compiling ../regparse.c
compiling ../regsyntax.c
compiling ../ruby.c
../ruby.c:387:57: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_ary_push(load_path, (*filter)(rubylib_path_new(p, s - p)));
~~~~~~~~~~~~~~~~~~~~~~^~~~
../ruby.c:372:26: note: expanded from macro 'rubylib_path_new'
#define rubylib_path_new rb_str_new
^
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../ruby.c:654:46: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
archlibdir = rb_str_subseq(sopath, 0, p - libpath);
~~~~~~~~~~~~~ ~~^~~~~~~~~
../ruby.c:659:58: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
archlibdir = rb_str_subseq(sopath, 0, (p2 ? p2 : p) - libpath);
~~~~~~~~~~~~~ ~~~~~~~~~~~~~~^~~~~~~~~
../ruby.c:679:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_resize(sopath, baselen);
~~~~~~~~~~~~~ ^~~~~~~
../ruby.c:703:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE path = RUBY_RELATIVE(paths, len);
~~~~~~~~~~~~~~~~~~~~~^~~~
../ruby.c:683:70: note: expanded from macro 'RUBY_RELATIVE'
#define RUBY_RELATIVE(path, len) rb_str_buf_cat(BASEPATH(), (path), (len))
~~~~~~~~~~~~~~ ^~~
../ruby.c:703:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE path = RUBY_RELATIVE(paths, len);
^~~~~~~~~~~~~~~~~~~~~~~~~
../ruby.c:683:49: note: expanded from macro 'RUBY_RELATIVE'
#define RUBY_RELATIVE(path, len) rb_str_buf_cat(BASEPATH(), (path), (len))
^~~~~~~~~~
../ruby.c:682:73: note: expanded from macro 'BASEPATH'
#define BASEPATH() rb_str_buf_cat(rb_str_buf_new(baselen+len), libpath, baselen)
~~~~~~~~~~~~~~ ^~~~~~~
../ruby.c:703:15: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
VALUE path = RUBY_RELATIVE(paths, len);
^~~~~~~~~~~~~~~~~~~~~~~~~
../ruby.c:683:49: note: expanded from macro 'RUBY_RELATIVE'
#define RUBY_RELATIVE(path, len) rb_str_buf_cat(BASEPATH(), (path), (len))
^~~~~~~~~~
../ruby.c:682:57: note: expanded from macro 'BASEPATH'
#define BASEPATH() rb_str_buf_cat(rb_str_buf_new(baselen+len), libpath, baselen)
~~~~~~~~~~~~~~ ~~~~~~~^~~~
../ruby.c:792:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_cat(name_error[0], s, p - s);
~~~~~~~~~~ ~~^~~
../ruby.c:828:36: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
argstr = rb_str_tmp_new((len = strlen(s)) + (envopt!=0));
~ ^~~~~~~~~
../ruby.c:993:23: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
if (!elen) elen = strlen(e);
~ ^~~~~~~~~
../ruby.c:1267:25: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
rb_fs = rb_reg_new(s, strlen(s), 0);
~~~~~~~~~~ ^~~~~~~~~
../ruby.c:1393:7: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
set_encoding_part(external);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../ruby.c:1391:40: note: expanded from macro 'set_encoding_part'
set_##type##_encoding_once(opt, s, p-s); \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../ruby.c:1007:78: note: expanded from macro 'set_external_encoding_once'
set_option_encoding_once("default_external", &(opt)->ext.enc.name, (e), (elen))
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
../ruby.c:1395:7: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
set_encoding_part(internal);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../ruby.c:1391:40: note: expanded from macro 'set_encoding_part'
set_##type##_encoding_once(opt, s, p-s); \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../ruby.c:1005:81: note: expanded from macro 'set_internal_encoding_once'
set_option_encoding_once("default_internal", &(opt)->intern.enc.name, (e), (elen))
~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~
13 warnings generated.
compiling ../scheduler.c
compiling ../signal.c
../signal.c:447:10: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
if (killpg(NUM2PIDT(argv[i]), sig) < 0)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../signal.c:426:30: note: expanded from macro 'killpg'
#define killpg(pg, sig) kill(-(pg), (sig))
~~~~ ^~~~~
../signal.c:481:12: warning: implicit conversion loses integer precision: 'pid_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
kill(pid, sig);
~~~~ ^~~
../signal.c:486:22: warning: implicit conversion loses integer precision: 'pid_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
if (t < 0 && kill(pid, sig))
~~~~ ^~~
../signal.c:494:20: warning: implicit conversion loses integer precision: 'pid_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
else if (kill(pid, sig) < 0) {
~~~~ ^~~
4 warnings generated.
compiling ../sprintf.c
In file included from ../sprintf.c:27:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../sprintf.c:509:12: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = p - RSTRING_PTR(str);
~ ~~^~~~~~~~~~~~~~~~~~
../sprintf.c:633:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
tmp = rb_str_new(NULL, numdigits);
~~~~~~~~~~~~~~~~~^~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../sprintf.c:667:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
tmp = rb_str_new(NULL, numdigits);
~~~~~~~~~~~~~~~~~^~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../sprintf.c:675:56: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = rb_long2int(RSTRING_END(tmp) - s);
~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~
../sprintf.c:714:42: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = rb_long2int(RSTRING_END(tmp) - s);
~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~^~~
../sprintf.c:921:14: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
bsiz = rb_str_capacity(result);
~ ^~~~~~~~~~~~~~~~~~~~~~~
In file included from ../sprintf.c:997:
../vsnprintf.c:968:27: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
*va_arg(ap, long *) = ret;
~ ^~~
../vsnprintf.c:1027:15: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
fieldsz = strlen(cp);
~ ^~~~~~~~~~
../sprintf.c:1063:21: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long blen = buf - RSTRING_PTR(result), bsiz = fp->_w;
~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~
../sprintf.c:1063:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long blen = buf - RSTRING_PTR(result), bsiz = fp->_w;
~~~~ ~~~~^~
../sprintf.c:1079:44: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
MEMCPY(buf, iov->iov_base, char, n = iov->iov_len);
~ ~~~~~^~~~~~~
../include/ruby/internal/memory.h:129:89: note: expanded from macro 'MEMCPY'
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), rbimpl_size_mul_or_raise(sizeof(type), (n)))
^
../sprintf.c:1084:32: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(result, buf - RSTRING_PTR(result));
~~~~~~~~~~~~~~ ~~~~^~~~~~~~~~~~~~~~~~~~~
../sprintf.c:1160:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
result = rb_str_buf_new(f._w);
~~~~~~~~~~~~~~ ~~^~
../sprintf.c:1177:40: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_resize(result, (char *)f._p - RSTRING_PTR(result));
~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../sprintf.c:1236:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_resize(str, (char *)f._p - RSTRING_PTR(str));
~~~~~~~~~~~~~ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
16 warnings generated.
compiling ../st.c
compiling ../strftime.c
../strftime.c:178:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_set_len(ftime, len);
~~~~~~~~~~~~~~ ^~~
../strftime.c:179:34: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
rb_str_modify_expand(ftime, nlen-len);
~~~~~~~~~~~~~~~~~~~~ ~~~~^~~~
../strftime.c:193:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE fmt = rb_enc_str_new(format, format_len, enc);
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../include/ruby/encoding.h:149:32: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new_static((str), (len), (enc)) : \
~~~~~~~~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../strftime.c:193:38: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE fmt = rb_enc_str_new(format, format_len, enc);
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../include/ruby/encoding.h:150:25: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new((str), (len), (enc)) \
~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../strftime.c:435:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%a %b %e %H:%M:%S %Y");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:440:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:445:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:454:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:459:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 3, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:464:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:469:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:491:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 1, PRI_TIMET_PREFIX"d", sec);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:497:33: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMTV('0', 1, "d", sec);
^~~~~~~~~~~~~~~~~~~~~~
../strftime.c:346:33: note: expanded from macro 'FMTV'
FMT((def_pad), (def_prec), "l"fmt, FIX2LONG(tmp)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:497:33: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
FMTV('0', 1, "d", sec);
^~~~~~~~~~~~~~~~~~~~~~
../strftime.c:357:28: note: expanded from macro 'FMTV'
rb_str_set_len(ftime, s-start); \
~~~~~~~~~~~~~~ ~^~~~~~
../strftime.c:503:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:507:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", weeknumber_v(vtm, 0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:512:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 1, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:516:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", weeknumber_v(vtm, 1));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:520:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%m/%d/%y");
^~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:524:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%H:%M:%S");
^~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:529:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:535:5: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 0 <= y ? 4 : 5, "ld", y);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:538:5: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMTV('0', 4, "d", vtm->year);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:346:33: note: expanded from macro 'FMTV'
FMT((def_pad), (def_prec), "l"fmt, FIX2LONG(tmp)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:538:5: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
FMTV('0', 4, "d", vtm->year);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:357:28: note: expanded from macro 'FMTV'
rb_str_set_len(ftime, s-start); \
~~~~~~~~~~~~~~ ~^~~~~~
../strftime.c:664:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%m/%d/%y");
^~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:668:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT(' ', 2, "d", range(1, vtm->mday, 31));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:672:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%I:%M:%S %p");
^~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:676:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%H:%M");
^~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:680:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%H:%M:%S");
^~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:687:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT(' ', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:696:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT(' ', 2, "d", (int)i);
^~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:703:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%e-%^b-%4Y");
^~~~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:710:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMTV('0', 2, "d", div(vtm->year, INT2FIX(100)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:346:33: note: expanded from macro 'FMTV'
FMT((def_pad), (def_prec), "l"fmt, FIX2LONG(tmp)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:710:25: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
FMTV('0', 2, "d", div(vtm->year, INT2FIX(100)));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:357:28: note: expanded from macro 'FMTV'
rb_str_set_len(ftime, s-start); \
~~~~~~~~~~~~~~ ~^~~~~~
../strftime.c:725:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "d", iso8601wknum_v(vtm));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:730:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 1, "d", vtm->wday == 0 ? 7 : vtm->wday);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:757:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 0 <= y ? 4 : 5, "ld", y);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:760:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMTV('0', 4, "d", yv);
^~~~~~~~~~~~~~~~~~~~~
../strftime.c:346:33: note: expanded from macro 'FMTV'
FMT((def_pad), (def_prec), "l"fmt, FIX2LONG(tmp)); \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:760:49: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
FMTV('0', 4, "d", yv);
^~~~~~~~~~~~~~~~~~~~~
../strftime.c:357:28: note: expanded from macro 'FMTV'
rb_str_set_len(ftime, s-start); \
~~~~~~~~~~~~~~ ~^~~~~~
../strftime.c:766:41: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
FMT('0', 2, "ld", y);
^~~~~~~~~~~~~~~~~~~~
../strftime.c:313:26: note: expanded from macro 'FMT'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:843:4: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
STRFTIME("%Y-%m-%d");
^~~~~~~~~~~~~~~~~~~~
../strftime.c:323:26: note: expanded from macro 'STRFTIME'
rb_str_set_len(ftime, len); \
~~~~~~~~~~~~~~ ^~~
../strftime.c:910:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_set_len(ftime, len);
~~~~~~~~~~~~~~ ^~~
../strftime.c:911:23: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_resize(ftime, len);
~~~~~~~~~~~~~ ^~~
43 warnings generated.
compiling ../string.c
In file included from ../string.c:35:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../string.c:456:32: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_fstring_new(ptr, strlen(ptr));
~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:616:11: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return e - s;
~~~~~~ ~~^~~
../string.c:620:43: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (*cr == ENC_CODERANGE_VALID) return e - s;
~~~~~~ ~~^~~
../string.c:623:11: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return e - s;
~~~~~~ ~~^~~
../string.c:629:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return e - s;
~~~~~~ ~~^~~
../string.c:635:12: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return p - s;
~~~~~~ ~~^~~
../string.c:648:12: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return p - s;
~~~~~~ ~~^~~
../string.c:654:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return e - s;
~~~~~~ ~~^~~
../string.c:860:28: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_str_new(ptr, strlen(ptr));
~~~~~~~~~~ ^~~~~~~~~~~
../string.c:886:32: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_enc_str_new(ptr, strlen(ptr), enc);
~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:1029:12: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
olen = rb_str_capacity(newstr);
~ ^~~~~~~~~~~~~~~~~~~~~~~
../string.c:1047:25: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_set_len(newstr, converted_output);
~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~
../string.c:1063:11: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = dp - (unsigned char*)RSTRING_PTR(newstr);
~ ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../string.c:1139:46: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_external_str_new_with_enc(ptr, strlen(ptr), rb_default_external_encoding());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:1151:46: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_external_str_new_with_enc(ptr, strlen(ptr), rb_locale_encoding());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:1163:46: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_external_str_new_with_enc(ptr, strlen(ptr), rb_filesystem_encoding());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:1310:44: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long ofs = RSTRING(orig)->as.heap.ptr - RSTRING(shared)->as.heap.ptr;
~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../string.c:1392:16: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long len = strlen(ptr);
~~~ ^~~~~~~~~~~
../string.c:1830:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return c + (e - p);
~~~~~~ ~~^~~~~~~~~
../string.c:1843:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return c + (e - p);
~~~~~~ ~~^~~~~~~~~
../string.c:1888:16: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return c + (e - p);
~~~~~~ ~~^~~~~~~~~
../string.c:2354:47: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long capa = str_capacity(str, oldtermlen) + oldtermlen;
~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../string.c:2535:23: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (!pp) return e - p;
~~~~~~ ~~^~~
../string.c:2536:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return pp - p;
~~~~~~ ~~~^~~
../string.c:2581:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return pp - p;
~~~~~~ ~~~^~~
../string.c:2654:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = e - p;
~ ~~^~~
../string.c:2688:21: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = e - p;
~ ~~^~~
../string.c:2722:15: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long ofs = p - RSTRING_PTR(str);
~~~ ~~^~~~~~~~~~~~~~~~~~
../string.c:2895:19: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
off = ptr - sptr;
~ ~~~~^~~~~~
../string.c:2949:37: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_str_buf_cat(str, ptr, strlen(ptr));
~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:3059:48: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_enc_cr_str_buf_cat(str, ptr, strlen(ptr),
~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:3724:38: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pos = rb_str_sublen(str, BEG(0));
~~~~~~~~~~~~~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:3897:38: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pos = rb_str_sublen(str, BEG(0));
~~~~~~~~~~~~~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:4319:23: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
carry_pos = s - sbeg;
~ ~~^~~~~~
../string.c:4351:27: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
carry_pos = s - sbeg;
~ ~~^~~~~~
../string.c:4853:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = p - RSTRING_PTR(str); /* physical position */
~ ~~^~~~~~~~~~~~~~~~~~
../string.c:4854:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = e - p; /* physical length */
~ ~~^~~
../string.c:4886:13: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
start = BEG(nth);
~ ^~~~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:4890:11: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
end = END(nth);
~ ^~~~~~~~
../string.c:59:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../string.c:5045:8: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
beg = BEG(nth);
~ ^~~~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:5046:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
len = END(nth) - beg;
~ ~~~~~~~~~^~~~~
../string.c:5058:10: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = p - RSTRING_PTR(str);
~ ~~^~~~~~~~~~~~~~~~~~
../string.c:5076:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = p - RSTRING_PTR(str);
~ ~~^~~~~~~~~~~~~~~~~~
../string.c:5085:13: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = p - RSTRING_PTR(str);
~ ~~^~~~~~~~~~~~~~~~~~
../string.c:5235:13: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
beg0 = BEG(0);
~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:5236:13: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
end0 = END(0);
~ ^~~~~~
../string.c:59:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../string.c:5423:13: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
beg0 = BEG(0);
~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:5424:13: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
end0 = END(0);
~ ^~~~~~
../string.c:59:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../string.c:6109:48: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p > prev) str_buf_cat(result, prev, p - prev);
~~~~~~~~~~~ ~~^~~~~~
../string.c:6115:42: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
str_buf_cat(result, buf, strlen(buf));
~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:6125:56: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
~~~~~~~~~~~ ~~~~~~^~~~~~
../string.c:6126:37: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
str_buf_cat(result, cc, strlen(cc));
~~~~~~~~~~~ ^~~~~~~~~~
../string.c:6132:56: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
~~~~~~~~~~~ ~~~~~~^~~~~~
../string.c:6137:47: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p > prev) str_buf_cat(result, prev, p - prev);
~~~~~~~~~~~ ~~^~~~~~
../string.c:6185:48: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p > prev) str_buf_cat(result, prev, p - prev);
~~~~~~~~~~~ ~~^~~~~~
../string.c:6191:42: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
str_buf_cat(result, buf, strlen(buf));
~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:6206:56: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
~~~~~~~~~~~ ~~~~~~^~~~~~
../string.c:6225:56: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
~~~~~~~~~~~ ~~~~~~^~~~~~
../string.c:6237:56: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
~~~~~~~~~~~ ~~~~~~^~~~~~
../string.c:6243:47: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p > prev) str_buf_cat(result, prev, p - prev);
~~~~~~~~~~~ ~~^~~~~~
../string.c:7414:22: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if ((offset = t - buf) + tlen > max) {
~ ~~^~~~~
../string.c:7416:23: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
max = offset + tlen + (send - s);
~ ~~~~~~~~~~~~~~^~~~~~~~~~~~
../string.c:7432:32: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
RSTRING(str)->as.heap.len = t - buf;
~ ~~^~~~~
../string.c:7487:22: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if ((offset = t - buf) + tlen > max) {
~ ~~^~~~~
../string.c:7508:32: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
RSTRING(str)->as.heap.len = t - buf;
~ ~~^~~~~
../string.c:7732:24: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
STR_SET_LEN(str, t - RSTRING_PTR(str));
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../string.c:120:28: note: expanded from macro 'STR_SET_LEN'
STR_SET_EMBED_LEN((str), (n));\
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../string.c:113:19: note: expanded from macro 'STR_SET_EMBED_LEN'
long tmp_n = (n);\
~~~~~ ^
../string.c:7732:24: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
STR_SET_LEN(str, t - RSTRING_PTR(str));
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../string.c:123:31: note: expanded from macro 'STR_SET_LEN'
RSTRING(str)->as.heap.len = (n);\
~ ^
../string.c:7838:36: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
STR_SET_LEN(str, (char *)t - RSTRING_PTR(str));
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../string.c:120:28: note: expanded from macro 'STR_SET_LEN'
STR_SET_EMBED_LEN((str), (n));\
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../string.c:113:19: note: expanded from macro 'STR_SET_EMBED_LEN'
long tmp_n = (n);\
~~~~~ ^
../string.c:7838:36: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
STR_SET_LEN(str, (char *)t - RSTRING_PTR(str));
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../string.c:123:31: note: expanded from macro 'STR_SET_LEN'
RSTRING(str)->as.heap.len = (n);\
~ ^
../string.c:8230:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8233:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
end = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8241:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8245:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
end = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8257:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8260:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
end = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8268:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8272:17: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
end = ptr - bptr;
~ ~~~~^~~~~~
../string.c:8286:51: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
(end = rb_memsearch(sptr, slen, ptr, eptr - ptr, enc)) >= 0) {
~~~~~~~~~~~~ ~~~~~^~~~~
../string.c:8293:52: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
SPLIT_STR(substr_start - str_start, (ptr+end) - substr_start);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../string.c:8213:75: note: expanded from macro 'SPLIT_STR'
#define SPLIT_STR(beg, len) (empty_count = split_string(result, str, beg, len, empty_count))
~~~~~~~~~~~~ ^~~
../string.c:8293:29: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
SPLIT_STR(substr_start - str_start, (ptr+end) - substr_start);
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../string.c:8213:70: note: expanded from macro 'SPLIT_STR'
#define SPLIT_STR(beg, len) (empty_count = split_string(result, str, beg, len, empty_count))
~~~~~~~~~~~~ ^~~
../string.c:8298:12: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = ptr - str_start;
~ ~~~~^~~~~~~~~~~
../string.c:8308:27: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
SPLIT_STR(ptr - str_start, n);
~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../string.c:8213:70: note: expanded from macro 'SPLIT_STR'
#define SPLIT_STR(beg, len) (empty_count = split_string(result, str, beg, len, empty_count))
~~~~~~~~~~~~ ^~~
../string.c:8312:19: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
beg = ptr - str_start;
~ ~~~~^~~~~~~~~~~
../string.c:8327:19: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
end = BEG(0);
~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:8348:17: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
beg = start = END(0);
~ ^~~~~~
../string.c:59:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../string.c:8354:31: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
SPLIT_STR(BEG(idx), END(idx)-BEG(idx));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
../string.c:8213:75: note: expanded from macro 'SPLIT_STR'
#define SPLIT_STR(beg, len) (empty_count = split_string(result, str, beg, len, empty_count))
~~~~~~~~~~~~ ^~~
../string.c:8354:13: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
SPLIT_STR(BEG(idx), END(idx)-BEG(idx));
~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^
../string.c:8213:70: note: expanded from macro 'SPLIT_STR'
#define SPLIT_STR(beg, len) (empty_count = split_string(result, str, beg, len, empty_count))
~~~~~~~~~~~~ ^~~
../string.c:8487:22: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
subend - subptr + (chomp ? 0 : rslen));
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
../string.c:8486:39: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
line = rb_str_subseq(str, subptr - ptr,
~~~~~~~~~~~~~ ~~~~~~~^~~~~
../string.c:8511:48: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
pos = rb_memsearch(rsptr, rslen, subptr, pend - subptr, enc);
~~~~~~~~~~~~ ~~~~~^~~~~~~~
../string.c:8528:49: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
line = rb_str_subseq(str, subptr - ptr, subend - subptr);
~~~~~~~~~~~~~ ~~~~~~~^~~~~~~~
../string.c:8528:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
line = rb_str_subseq(str, subptr - ptr, subend - subptr);
~~~~~~~~~~~~~ ~~~~~~~^~~~~
../string.c:8545:47: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
line = rb_str_subseq(str, subptr - ptr, pend - subptr);
~~~~~~~~~~~~~ ~~~~~^~~~~~~~
../string.c:8545:35: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
line = rb_str_subseq(str, subptr - ptr, pend - subptr);
~~~~~~~~~~~~~ ~~~~~~~^~~~~
../string.c:8949:53: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
ENUM_ELEM(ary, rb_str_subseq(str, ptr-ptr0, len));
~~~~~~~~~~~~~ ^~~
../string.c:8392:51: note: expanded from macro 'ENUM_ELEM'
#define ENUM_ELEM(ary, e) enumerator_element(ary, e)
^
../string.c:8949:46: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
ENUM_ELEM(ary, rb_str_subseq(str, ptr-ptr0, len));
~~~~~~~~~~~~~ ~~~^~~~~
../string.c:8392:51: note: expanded from macro 'ENUM_ELEM'
#define ENUM_ELEM(ary, e) enumerator_element(ary, e)
^
../string.c:9014:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return p - beg;
~~~~~~ ~~^~~~~
../string.c:9097:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return e - p;
~~~~~~ ~~^~~
../string.c:9140:11: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return e - p;
~~~~~~ ~~^~~
../string.c:9277:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return s - start;
~~~~~~ ~~^~~~~~~
../string.c:9367:14: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return e - t;
~~~~~~ ~~^~~
../string.c:9525:12: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pos = BEG(0);
~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:9526:12: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
end = END(0);
~ ^~~~~~
../string.c:59:18: note: expanded from macro 'END'
#define END(no) (regs->end[(no)])
^~~~~~~~~~~~~~~
../string.c:9550:40: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
s = rb_str_subseq(str, BEG(i), END(i)-BEG(i));
~~~~~~~~~~~~~ ~~~~~~^~~~~~~
../string.c:9550:26: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
s = rb_str_subseq(str, BEG(i), END(i)-BEG(i));
~~~~~~~~~~~~~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:9986:23: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
STR_SET_LEN(res, p-RSTRING_PTR(res));
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../string.c:120:28: note: expanded from macro 'STR_SET_LEN'
STR_SET_EMBED_LEN((str), (n));\
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../string.c:113:19: note: expanded from macro 'STR_SET_EMBED_LEN'
long tmp_n = (n);\
~~~~~ ^
../string.c:9986:23: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
STR_SET_LEN(res, p-RSTRING_PTR(res));
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
../string.c:123:31: note: expanded from macro 'STR_SET_LEN'
RSTRING(str)->as.heap.len = (n);\
~ ^
../string.c:10085:15: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pos = BEG(0);
~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:10086:39: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
sep = rb_str_subseq(str, pos, END(0) - pos);
~~~~~~~~~~~~~ ~~~~~~~^~~~~
../string.c:10129:15: warning: implicit conversion loses integer precision: 'OnigPosition' (aka 'long long') to 'long' [-Wshorten-64-to-32]
pos = BEG(0);
~ ^~~~~~
../string.c:58:18: note: expanded from macro 'BEG'
#define BEG(no) (regs->beg[(no)])
^~~~~~~~~~~~~~~
../string.c:10130:46: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
sep = rb_str_subseq(str, pos, END(0) - pos);
~~~~~~~~~~~~~ ~~~~~~~^~~~~
../string.c:10517:44: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
else if (ret = rb_str_subseq(str, 0, e - p), rb_enc_asciicompat(enc)) {
~~~~~~~~~~~~~ ~~^~~
../string.c:10653:33: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_buf_cat(buf, p1, p - p1);
~~~~~~~~~~~~~~ ~~^~~~
../string.c:10656:30: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (e - p < clen) clen = e - p;
~ ~~^~~
../string.c:10702:32: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_buf_cat(buf, p1, p - p1);
~~~~~~~~~~~~~~ ~~^~~~
../string.c:10710:38: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
repl = rb_yield(rb_enc_str_new(p, e-p, enc));
~~~~~~~~~~~~~~ ~^~
../string.c:10757:41: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (p > p1) rb_str_buf_cat(buf, p1, p - p1);
~~~~~~~~~~~~~~ ~~^~~~
../string.c:10759:30: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
if (e - p < clen) clen = e - p;
~ ~~^~~
../string.c:10796:32: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_buf_cat(buf, p1, p - p1);
~~~~~~~~~~~~~~ ~~^~~~
../string.c:10803:38: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
repl = rb_yield(rb_enc_str_new(p, e-p, enc));
~~~~~~~~~~~~~~ ~^~
../string.c:11533:33: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_interned_str(ptr, strlen(ptr));
~~~~~~~~~~~~~~~ ^~~~~~~~~~~
../string.c:11550:37: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_enc_interned_str(ptr, strlen(ptr), enc);
~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
123 warnings generated.
compiling ../struct.c
In file included from ../struct.c:19:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
1 warning generated.
generating id.c
id.c updated
compiling ../symbol.c
../symbol.c:205:36: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_enc_symname2_p(name, strlen(name), enc);
~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
../symbol.c:786:29: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_intern2(name, strlen(name));
~~~~~~~~~~ ^~~~~~~~~~~~
../symbol.c:988:45: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new2(symbols->str_sym->num_entries);
~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../symbol.c:1206:37: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
return rb_sym_intern_ascii(ptr, strlen(ptr));
~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~
4 warnings generated.
compiling ../thread.c
In file included from ../thread.c:75:
../hrtime.h:161:22: warning: implicit conversion loses integer precision: 'time_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
tv->tv_sec = (time_t)(*hrt / RB_HRTIME_PER_SEC);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../thread.c:353:
../thread_win32.c:464:21: warning: implicit conversion loses integer precision: 'const time_t' (aka 'const long long') to 'long' [-Wshorten-64-to-32]
tv.tv_sec = ts->tv_sec;
~ ~~~~^~~~~~
../thread_win32.c:560:16: warning: implicit conversion loses integer precision: 'long long' to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
size = end - base;
~ ~~~~^~~~~~
../thread_win32.c:603:39: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
th->thread_id = w32_create_thread(stack_size, thread_start_func_1, th);
~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
../thread_win32.c:842:42: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
HANDLE thread_id = w32_create_thread(stack_size, mjit_worker, worker_func);
~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
../thread.c:5655:63: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
long pc = cfp->pc - cfp->iseq->body->iseq_encoded - 1;
~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
6 warnings generated.
making ../timev.rbinc
compiling ../time.c
In file included from ../time.c:38:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
../time.c:921:40: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
str = rb_usascii_str_new(zone, len);
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/intern/string.h:228:36: note: expanded from macro 'rb_usascii_str_new'
rb_usascii_str_new) ((str), (len)))
^~~
../time.c:924:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
str = rb_enc_str_new(zone, len, rb_locale_encoding());
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/encoding.h:149:32: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new_static((str), (len), (enc)) : \
~~~~~~~~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../time.c:924:36: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
str = rb_enc_str_new(zone, len, rb_locale_encoding());
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/encoding.h:150:25: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new((str), (len), (enc)) \
~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../time.c:5074:34: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
str = rb_str_new(NULL, i + ysize);
~~~~~~~~~~~~~~~~~~~^~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
5 warnings generated.
compiling ../transcode.c
../transcode.c:380:40: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long long') to 'long' [-Wshorten-64-to-32]
const VALUE fn = rb_str_new(0, total_len);
~~~~~~~~~~~~~~^~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../transcode.c:385:28: warning: implicit conversion loses integer precision: 'const size_t' (aka 'const unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_set_len(fn, total_len);
~~~~~~~~~~~~~~ ^~~~~~~~~
../transcode.c:1840:34: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(dst, dlen + (dp - ds));
~~~~~~~~~~~~~~ ~~~~~^~~~~~~~~~~
../transcode.c:2046:39: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
VALUE bytes = rb_str_new(err, error_len);
~~~~~~~~~~~~~~~~^~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../transcode.c:2057:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
bytes2 = rb_str_new(err+error_len, readagain_len);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../transcode.c:2078:49: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ec->last_error.error_bytes_len);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../transcode.c:2304:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ec->last_error.error_bytes_len,
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../include/ruby/encoding.h:149:32: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new_static((str), (len), (enc)) : \
~~~~~~~~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../transcode.c:2304:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ec->last_error.error_bytes_len,
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../include/ruby/encoding.h:150:25: note: expanded from macro 'rb_enc_str_new'
rb_enc_str_new((str), (len), (enc)) \
~~~~~~~~~~~~~~ ^~~
../include/ruby/defines.h:86:54: note: expanded from macro 'RB_GNUC_EXTENSION_BLOCK'
# define RB_GNUC_EXTENSION_BLOCK(x) __extension__ ({ x; })
^
../transcode.c:2415:32: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_str_resize(destination, new_len);
~~~~~~~~~~~~~ ^~~~~~~
../transcode.c:2740:29: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(dest, bp - buf);
~~~~~~~~~~~~~~ ~~~^~~~~
../transcode.c:3796:30: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_set_len(output, op-(unsigned char *)RSTRING_PTR(output));
~~~~~~~~~~~~~~ ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../transcode.c:3798:37: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_drop_bytes(input, ip - (unsigned char *)RSTRING_PTR(input));
~~~~~~~~~~~~~~~~~ ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../transcode.c:4027:104: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_ary_store(ary, 3, rb_str_new((const char *)ec->last_error.error_bytes_start, ec->last_error.error_bytes_len));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
../transcode.c:4028:137: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_ary_store(ary, 4, rb_str_new((const char *)ec->last_error.error_bytes_start + ec->last_error.error_bytes_len, ec->last_error.readagain_len));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
../include/ruby/internal/intern/string.h:217:28: note: expanded from macro 'rb_str_new'
rb_str_new) ((str), (len)))
^~~
14 warnings generated.
compiling ../transient_heap.c
In file included from ../transient_heap.c:16:
../internal/struct.h:100:16: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
long ret = FL_TEST_RAW(st, RSTRUCT_EMBED_LEN_MASK);
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/fl_type.h:140:25: note: expanded from macro 'FL_TEST_RAW'
#define FL_TEST_RAW RB_FL_TEST_RAW
^
../include/ruby/internal/fl_type.h:108:30: note: expanded from macro 'RB_FL_TEST_RAW'
#define RB_FL_TEST_RAW RB_FL_TEST_RAW
^
1 warning generated.
compiling ../util.c
compiling ../variable.c
../variable.c:260:31: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
id = rb_check_id_cstr(pbeg, p-pbeg, enc);
~~~~~~~~~~~~~~~~ ~^~~~~
../variable.c:282:42: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
rb_str_subseq(pathname, 0, p-path));
~~~~~~~~~~~~~ ~^~~~~
../variable.c:531:45: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
char *buf = ALLOCV_N(char, vbuf, len+1);
~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../variable.c:534:26: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
id = rb_intern2(buf, len+1);
~~~~~~~~~~ ~~~^~
../variable.c:547:37: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
id = rb_check_id_cstr(name, len, NULL);
~~~~~~~~~~~~~~~~ ^~~
../variable.c:551:45: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
char *buf = ALLOCV_N(char, vbuf, len+1);
~~~~~~~~~~~~~~~~~~~~~~~~^~~
../include/ruby/internal/memory.h:139:20: note: expanded from macro 'ALLOCV_N'
#define ALLOCV_N RB_ALLOCV_N
^
../include/ruby/internal/memory.h:125:38: note: expanded from macro 'RB_ALLOCV_N'
rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
~~~~~~~~~~~~~~~~~~~~ ^
../include/ruby/internal/cast.h:33:29: note: expanded from macro 'RBIMPL_CAST'
# define RBIMPL_CAST(expr) (expr)
^~~~
../variable.c:554:39: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
id = rb_check_id_cstr(buf, len+1, NULL);
~~~~~~~~~~~~~~~~ ~~~^~
../variable.c:1824:48: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rb_name_err_raise_str(rb_fstring_new(message, message_len),
~~~~~~~~~~~~~~ ^~~~~~~~~~~
../variable.c:2791:27: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new2(rb_id_table_size(tbl));
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~
../variable.c:2845:28: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new2(tbl->num_entries);
~~~~~~~~~~~ ~~~~~^~~~~~~~~~~
../variable.c:3217:16: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
long len = strlen(name);
~~~ ^~~~~~~~~~~~
../variable.c:3477:28: warning: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
ary = rb_ary_new2(tbl->num_entries);
~~~~~~~~~~~ ~~~~~^~~~~~~~~~~
../variable.c:3564:36: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
ID id = rb_check_id_cstr(name, strlen(name), rb_usascii_encoding());
~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~
13 warnings generated.
../revision.h unchanged
compiling ../version.c
generating vm.inc
generating vm_call_iseq_optimized.inc
vm_call_iseq_optimized.inc updated
generating vmtc.inc
compiling ../vm.c
In file included from ../vm.c:352:
In file included from ../vm_insnhelper.c:21:
In file included from ../internal/numeric.h:12:
../internal/bignum.h:226:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return rb_long2int(BIGNUM_LEN(b));
~~~~~~~~~~~ ^~~~~~~~~~~~~
In file included from ../vm.c:352:
In file included from ../vm_insnhelper.c:2139:
../vm_args.c:669:31: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
int kw_len = rb_long2int(RHASH_SIZE(keyword_hash));
~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../vm.c:352:
../vm_insnhelper.c:5141:17: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
return INT2FIX(RHASH_SIZE(recv));
~~~~~~~~^~~~~~~~~~~~~~~~~
../include/ruby/internal/arithmetic/long.h:240:20: note: expanded from macro 'INT2FIX'
RB_INT2FIX(i))
~~~~~~~~~~ ^
../vm.c:1518:55: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'rb_num_t' (aka 'unsigned long') [-Wshorten-64-to-32]
return lep_svar_get(ec, cfp ? VM_CF_LEP(cfp) : 0, key);
~~~~~~~~~~~~ ^~~
../vm.c:1525:48: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long long') to 'rb_num_t' (aka 'unsigned long') [-Wshorten-64-to-32]
lep_svar_set(ec, cfp ? VM_CF_LEP(cfp) : 0, key, val);
~~~~~~~~~~~~ ^~~
../vm.c:2214:16: warning: implicit conversion loses integer precision: 'long long' to 'unsigned long' [-Wshorten-64-to-32]
epc = cfp->pc - cfp->iseq->body->iseq_encoded;
~ ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
6 warnings generated.
compiling ../vm_backtrace.c
../vm_backtrace.c:503:33: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
return start_cfp - last_cfp + 1;
~~~~~~ ~~~~~~~~~~~~~~~~~~~~~^~~
1 warning generated.
compiling ../vm_dump.c
compiling ../vm_sync.c
making ../trace_point.rbinc
compiling ../vm_trace.c
assembling ../coroutine/win64/Context.S
compiling ../enc/ascii.c
compiling ../enc/us_ascii.c
compiling ../enc/unicode.c
compiling ../enc/utf_8.c
generating enc/trans/newline.c ...
compiling enc/trans/newline.c
compiling ../missing/langinfo.c
compiling ../missing/crypt.c
compiling ../missing/explicit_bzero.c
compiling ../missing/ffs.c
compiling ../missing/lgamma_r.c
compiling ../missing/setproctitle.c
compiling ../missing/strlcat.c
compiling ../missing/strlcpy.c
compiling ../missing/tgamma.c
compiling ../win32/win32.c
../win32/win32.c:396:12: warning: implicit conversion loses integer precision: 'uintptr_t' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32]
return rb_w32_asynchronize(locker,
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../win32/win32.c:458:26: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
f = func(pidl, buf, len, 0);
~~~~ ^~~
../win32/win32.c:577:43: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
GetEnvironmentVariableW(L"HOME", buffer, buffer_len);
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
../win32/win32.c:580:54: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
len = GetEnvironmentVariableW(L"HOMEDRIVE", buffer, buffer_len);
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
../win32/win32.c:581:64: warning: implicit conversion loses integer precision: 'unsigned long long' to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
GetEnvironmentVariableW(L"HOMEPATH", buffer + len, buffer_len - len);
~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~^~~~~
../win32/win32.c:584:50: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
GetEnvironmentVariableW(L"USERPROFILE", buffer, buffer_len);
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
../win32/win32.c:1071:28: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32]
int i = strlen(interp) - 11;
~ ~~~~~~~~~~~~~~~^~~~
../win32/win32.c:1155:16: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len += n = p - s;
~ ~~^~~
../win32/win32.c:1170:21: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len += (n = p - s) + 1;
~ ~~^~~
../win32/win32.c:1185:16: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len += (n = p - s) + 1;
~ ~~^~~
../win32/win32.c:1322:15: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32]
int len = strlen(cmd);
~~~ ^~~~~~~~~~~
../win32/win32.c:1413:69: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
char *tmp = ALLOCV(v, shell_len + strlen(cmd) + sizeof(" -c ") + 2);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:1423:73: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
char *tmp = ALLOCV(v, strlen(shell) + strlen(cmd) + sizeof(" /c ") + (nt ? 2 : 0));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:1433:18: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len = prog - cmd;
~ ~~~~~^~~~~
../win32/win32.c:1442:26: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len = prog++ - cmd - 1;
~ ~~~~~~~~~~~~~^~~
../win32/win32.c:1449:18: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len = prog - cmd;
~ ~~~~~^~~~~
../win32/win32.c:1450:7: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
STRNDUPV(p, v2, cmd, len + (slash ? strlen(prog) : 0));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../win32/win32.c:1209:49: note: expanded from macro 'STRNDUPV'
(((char *)memcpy(((ptr) = ALLOCV((v), (len) + 1)), (src), (len)))[len] = 0)
~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:1466:9: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32]
len = strlen(shell);
~ ^~~~~~~~~~~~~
../win32/win32.c:1477:18: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32]
int alen = strlen(prog);
~~~~ ^~~~~~~~~~~~
../win32/win32.c:1556:6: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
STRNDUPV(cmd, v, prog, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
../win32/win32.c:1209:49: note: expanded from macro 'STRNDUPV'
(((char *)memcpy(((ptr) = ALLOCV((v), (len) + 1)), (src), (len)))[len] = 0)
~~~~~~~~~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:1568:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
cmd = ALLOCV(v, len);
~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:1576:18: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
cmd = ALLOCV(v, len);
~~~~~~~~~~^~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:1651:20: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
tmpcurr->len = strlen(path);
~ ^~~~~~~~~~~~
../win32/win32.c:1863:12: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len = ptr - base;
~ ~~~~^~~~~~
../win32/win32.c:1950:14: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
return vptr - *vec;
~~~~~~ ~~~~~^~~~~~
../win32/win32.c:3435:9: warning: implicit conversion loses integer precision: 'intptr_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
sock = TO_SOCKET(fd);
~ ^~~~~~~~~~~~~
../win32/win32.c:126:22: note: expanded from macro 'TO_SOCKET'
#define TO_SOCKET(x) _get_osfhandle(x)
^~~~~~~~~~~~~~~~~
../win32/win32.c:3717:5: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'u_long' (aka 'unsigned long') [-Wshorten-64-to-32]
msghdr_to_wsamsg(msg, &wsamsg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../win32/win32.c:3689:53: note: expanded from macro 'msghdr_to_wsamsg'
(wsamsg)->lpBuffers[i].len = (msg)->msg_iov[i].iov_len; \
~ ~~~~~~~~~~~~~~~~~~^~~~~~~
../win32/win32.c:3772:5: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'u_long' (aka 'unsigned long') [-Wshorten-64-to-32]
msghdr_to_wsamsg(msg, &wsamsg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../win32/win32.c:3689:53: note: expanded from macro 'msghdr_to_wsamsg'
(wsamsg)->lpBuffers[i].len = (msg)->msg_iov[i].iov_len; \
~ ~~~~~~~~~~~~~~~~~~^~~~~~~
../win32/win32.c:4683:18: warning: implicit conversion loses integer precision: 'time_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
tv->tv_sec = filetime_split(&ft, &subsec);
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../win32/win32.c:4718:63: warning: implicit conversion loses integer precision: 'long long' to 'long' [-Wshorten-64-to-32]
sp->tv_nsec = (count.QuadPart % freq.QuadPart) * 1000000000 / freq.QuadPart;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../win32/win32.c:4781:48: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
wlen = translate_wchar(p, L'\\', L'/') - p + 1;
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
../win32/win32.c:5052:11: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
rp, size, &ret, NULL)) {
^~~~
../win32/win32.c:5076:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rp = ALLOCV(wtmp, size);
~~~~~~~~~~~~~^~~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:5142:46: warning: implicit conversion loses integer precision: 'unsigned long long' to 'long' [-Wshorten-64-to-32]
WCHAR *wname, *wpath = ALLOCV(wtmp, size + sizeof(WCHAR) * len);
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
../win32/win32.c:5155:55: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32]
ret = WideCharToMultiByte(cp, 0, wname, len, buf, bufsize, NULL, NULL);
~~~~~~~~~~~~~~~~~~~ ^~~~~~~
../win32/win32.c:5277:15: warning: implicit conversion loses integer precision: 'unsigned long long' to 'int' [-Wshorten-64-to-32]
int len = strlen(name);
~~~ ^~~~~~~~~~~~
../win32/win32.c:5821:13: warning: implicit conversion loses integer precision: 'long long' to 'int' [-Wshorten-64-to-32]
len = s - buf1;
~ ~~^~~~~~
../win32/win32.c:6088:28: warning: implicit conversion loses integer precision: 'uintptr_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
if (TerminateThread(thr, intrval)) {
~~~~~~~~~~~~~~~ ^~~~~~~
../win32/win32.c:7085:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32]
return rb_w32_recv(fd, buf, size, 0);
~~~~~~~~~~~ ^~~~
../win32/win32.c:7093:24: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
return _read(fd, buf, size);
~~~~~ ^~~~
../win32/win32.c:7131:45: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
if (!ReadFile((HANDLE)_osfhnd(fd), buf, len, &read, &ol)) {
~~~~~~~~ ^~~
../win32/win32.c:7221:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'int' [-Wshorten-64-to-32]
return rb_w32_send(fd, buf, size, 0);
~~~~~~~~~~~ ^~~~
../win32/win32.c:7230:30: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'unsigned int' [-Wshorten-64-to-32]
ssize_t w = _write(fd, buf, size);
~~~~~~ ^~~~
../win32/win32.c:7255:46: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
if (!WriteFile((HANDLE)_osfhnd(fd), buf, len, &written, &ol)) {
~~~~~~~~~ ^~~
44 warnings generated.
compiling ../win32/file.c
../win32/file.c:101:30: warning: implicit conversion loses integer precision: 'unsigned long long' to 'unsigned int' [-Wshorten-64-to-32]
count = (((idx + 4) & ~31) | 28);
~ ~~~~~~~~~~~~~~~~~~^~~~
../win32/file.c:243:40: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
nlen = WideCharToMultiByte(cp, 0, ws, len, NULL, 0, NULL, NULL);
~~~~~~~~~~~~~~~~~~~ ^~~
../win32/file.c:246:33: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long long') to 'int' [-Wshorten-64-to-32]
WideCharToMultiByte(cp, 0, ws, len, RSTRING_PTR(dst) + olen, nlen, NULL, NULL);
~~~~~~~~~~~~~~~~~~~ ^~~
../win32/file.c:538:34: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'DWORD' (aka 'unsigned long') [-Wshorten-64-to-32]
size = GetFullPathNameW(buffer, size, wfullpath, NULL);
~~~~~~~~~~~~~~~~ ^~~~
../win32/file.c:619:20: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long long') to 'long' [-Wshorten-64-to-32]
rp = ALLOCV(wtmp, size);
~~~~~~~~~~~~~^~~~~
../include/ruby/internal/memory.h:138:20: note: expanded from macro 'ALLOCV'
#define ALLOCV RB_ALLOCV
^
../include/ruby/internal/memory.h:120:33: note: expanded from macro 'RB_ALLOCV'
rb_alloc_tmp_buffer(&(v), (n)))
~~~~~~~~~~~~~~~~~~~ ^
5 warnings generated.
compiling ../dmyenc.c
linking miniruby.exe
    (1-1/1)