Home
last modified time | relevance | path

Searched refs:rb_num2long (Results 1 – 14 of 14) sorted by relevance

/dports/lang/ruby26/ruby-2.6.9/spec/ruby/optional/capi/
H A Dnumeric_spec.rb43 @s.rb_num2long(obj).should == 2
98 lambda { @s.rb_num2long(nil) }.should raise_error(TypeError)
102 @s.rb_num2long(4.2).should == 4
106 @s.rb_num2long(0x7fff_ffff).should == 0x7fff_ffff
110 @s.rb_num2long(5).should == 5
115 @s.rb_num2long(-1).should == -1
119 @s.rb_num2long(-2147442171).should == -2147442171
129 @s.rb_num2long(-1).should == -1
133 @s.rb_num2long(-9223372036854734331).should == -9223372036854734331
138 @s.rb_num2long(0xffff_ffff_ffff_ffff+1)
[all …]
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/optional/capi/ext/
H A Dnumeric_spec.c74 return INT2NUM(rb_num2long(num)); in numeric_spec_rb_int2num()
80 return LONG2NUM(rb_num2long(num)); in numeric_spec_rb_num2long()
/dports/lang/ruby26/ruby-2.6.9/
H A Dnumeric.c2844 rb_num2long(VALUE val) in rb_num2long() function
2952 long num = rb_num2long(val); in rb_num2int()
2961 long num = FIXNUM_P(val)?FIX2LONG(val):rb_num2long(val); in rb_fix2int()
2994 return rb_num2long(val); in rb_num2int()
3038 long num = rb_num2long(val); in rb_num2short()
3047 long num = FIXNUM_P(val)?FIX2LONG(val):rb_num2long(val); in rb_fix2short()
3084 v = rb_num2long(val); in rb_num2fix()
/dports/editors/vim/vim-8.2.3745/src/
H A Dif_ruby.c76 # define rb_num2long rb_num2long_stub macro
307 # define rb_num2long dll_rb_num2long macro
/dports/devel/ice37/ice-3.7.2/ruby/src/IceRuby/
H A DUtil.cpp310 data->ret = rb_num2long(data->val); in rb_num2long_wrapper()
/dports/lang/ruby26/ruby-2.6.9/doc/
H A DNEWS-2.2.0309 * rb_num2long returns a long instead of SIGNED_VALUE.
H A DChangeLog-1.8.015536 * numeric.c (rb_num2long): use to_int, not to_i.
16144 * numeric.c (rb_num2long): use rb_Integer() instead of independent
20791 * numeric.c (rb_num2long): no implicit conversion from boolean.
21014 * numeric.c (rb_num2long): missing/vsnprintf.c does not support
H A DChangeLog-2.1.015645 * numeric.c (rb_num2long): Don't use SIGNED_VALUE uselessly.
15812 (rb_num2long): Use LONG_MIN_MINUS_ONE_IS_LESS_THAN.
H A DChangeLog-2.2.09182 * numeric.c (rb_num2long): Returns a long.
H A DChangeLog-1.9.310771 * numeric.c (rb_num2fix): result of rb_num2long is SIGNED_VALUE.
13772 * numeric.c (rb_num2long): accept LONG_MAX < x < LONG_MAX+1 and
34040 * numeric.c (flo_to_s, rb_num2long, rb_num2ll): ditto.
70180 * numeric.c (rb_num2long, rb_num2ulong): ditto.
89152 Time.local/Time.gm as an usec, and NUM2LONG(rb_num2long for Float)
/dports/devel/php-ice37/ice-3.7.2/ruby/src/IceRuby/
H A DUtil.cpp310 data->ret = rb_num2long(data->val); in rb_num2long_wrapper()
/dports/devel/py-ice37/ice-3.7.2/ruby/src/IceRuby/
H A DUtil.cpp310 data->ret = rb_num2long(data->val); in rb_num2long_wrapper()
/dports/lang/ruby26/ruby-2.6.9/include/ruby/
H A Druby.h667 long rb_num2long(VALUE);
675 return rb_num2long(x); in rb_num2long_inline()
/dports/audio/snd/snd-21.2/
H A Dxen.h263 #define XEN_TO_C_INT(a) rb_num2long(a)