LONG2NUM

Function LONG2NUM 

Source
pub fn LONG2NUM(val: c_long) -> VALUE
Expand description

Convert long to Ruby Integer (akin to LONG2NUM).

Creates a Ruby Integer (Fixnum or Bignum) from a C long. Uses Fixnum if possible, otherwise allocates a Bignum.