emboss/krypt-core — Issue #11: Safe RSTRING_LENINT
Author: emboss
Created: 2012-01-21 20:41:23+00:00
State: open
Labels: feature

RSTRING_LENINT is specific to CRuby and just casts the long to an int. Implement a safe cast function that checks whether the long value fits in the in range.