Skip to content

Instantly share code, notes, and snippets.

@zoffixznet

zoffixznet/p6.p6 Secret

Created April 6, 2017 15:24
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 zoffixznet/6cb9496ee8f5f3d5d1b299db7735aac6 to your computer and use it in GitHub Desktop.
Save zoffixznet/6cb9496ee8f5f3d5d1b299db7735aac6 to your computer and use it in GitHub Desktop.
nqp::if(
nqp::islt_I(nqp::decont(i), -2**63), -2**63,
nqp::if( nqp::isgt_I(nqp::decont(i), 2**63-1), 2**63-1,
nqp::unbox_i(i),
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment