On 2014/06/24 08:04:19, Yang wrote:
On 2014/06/18 03:48:33, jianghua.yjh wrote:

I don't think this actually ever happens in V8. Maybe an assertion that
(high*2)
<= INT_MAX is sufficient?

yes, just potential, but why don't we modify it , and has a perfect code ?

or use this solution :
 mid = ((unsigned int)low + (unsigned int)high)) >> 1;

https://codereview.chromium.org/344513004/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to