Skip to content

Instantly share code, notes, and snippets.

@hsbt
Created December 5, 2017 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsbt/2301e16b37ceaa74ae047d627e968e37 to your computer and use it in GitHub Desktop.
Save hsbt/2301e16b37ceaa74ae047d627e968e37 to your computer and use it in GitHub Desktop.
../iseq.c:620:29: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
tmp_loc.first_loc.lineno = NUM2LONG(rb_ary_entry(code_range, 0));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/ruby.h:648:21: note: expanded from macro 'NUM2LONG'
#define NUM2LONG(x) RB_NUM2LONG(x)
^~~~~~~~~~~~~~
../include/ruby/ruby.h:647:24: note: expanded from macro 'RB_NUM2LONG'
#define RB_NUM2LONG(x) rb_num2long_inline(x)
^~~~~~~~~~~~~~~~~~~~~
../iseq.c:621:29: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
tmp_loc.first_loc.column = NUM2LONG(rb_ary_entry(code_range, 1));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/ruby.h:64compiling ../transcode.c
compiling ../util.c
8:21: note: expanded from macro 'NUM2LONG'
#define NUM2LONG(x) RB_NUM2LONG(x)
^~~~~~~~~~~~~~
../include/ruby/ruby.h:647:24: note: expanded from macro 'RB_NUM2LONG'
#define RB_NUM2LONG(x) rb_num2long_inline(x)
^~~~~~~~~~~~~~~~~~~~~
../iseq.c:622:28: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
tmp_loc.last_loc.lineno = NUM2LONG(rb_ary_entry(code_range, 2));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/ruby.h:648:21: note: expanded from macro 'NUM2LONG'
#define NUM2LONG(x) RB_NUM2LONG(x)
^~~~~~~~~~~~~~
../include/ruby/ruby.h:647:24: note: expanded from macro 'RB_NUM2LONG'
#define RB_NUM2LONG(x) rb_num2long_inline(x)
^~~~~~~~~~~~~compiling ../variable.c
~~~~~~~~
../iseq.c:623:28: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32]
tmp_loc.last_loc.column = NUM2LONG(rb_ary_entry(code_range, 3));
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/ruby/ruby.h:648:21: note: expanded from macro 'NUM2LONG'
#define NUM2LONG(x) RB_NUM2LONG(x)
^~~~~~~~~~~~~~
../include/ruby/ruby.h:647:24: note: expanded from macro 'RB_NUM2LONG'
#define RB_NUM2LONG(x) rb_num2long_inline(x)
^~~~~~~~~~~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment