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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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 :-)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]