Thread (7 messages) flat view 7 messages, 2 authors, 2016-06-15

Re: [JGIT PATCH 2/2] Allow core.packedGitLimit to exceed "2 g"

From: Ferry Huberts <hidden>
Date: 2016-06-15 22:46:57

If you looked at that, 2,000,000,000 is within the range of an int.
We select the smallest value.  The first argument expression is
computed as a long, so we shouldn't ever overflow and cause the
first argument to be negative.  If the first argument is larger
than 2 billion, then it does risk overflow, but the 2nd argument
is smaller, so it is returned.

The code is fine as is.
 
I stand corrected :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help