On 3 February 2015 at 15:02, Andrea Faulds <a...@ajf.me> wrote:
> Why would it be promoted?! The high bit is the 63rd bit. It fits within a 
> long.
>

I'm assuming your bigint implementation would want to respect signage.

When does it promote? 63rd to preserve signage?

4611686018427387904 // 1 << 62 - int
9223372036854775808 // 1 << 63 - bigint
18446744073709551616 // 1 << 64 - bigint

Or 64th to for complete madness?

4611686018427387904 // 1 << 62 - int
-9223372036854775808 // 1 << 63 - int
18446744073709551616 // 1 << 64 - bigint

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to