git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Ferry Huberts <ferry.huberts@pelagic.nl>
Date
Jun 14, 2009, 08:49 UTC
Message-ID
<4A34B9A4.7020702@pelagic.nl>
In-Reply-To
<20090613191943.GS16497@spearce.org>
Show 9 quoted lines
> 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 :-)
Previous: Shawn O. PearceNext: Ferry Huberts
Message 5 of 7 in “Add getLong to RepositoryConfig”
  1. 1/2 Add getLong to RepositoryConfigShawn O. Pearce, Jun 12, 2009
  2. 2/2 Allow core.packedGitLimit to exceed "2 g"Shawn O. Pearce, Jun 12, 2009
  3. Ferry HubertsJun 13, 2009
  4. Shawn O. PearceJun 13, 2009
  5. Ferry HubertsJun 14, 2009
  6. Ferry HubertsJun 13, 2009
  7. Shawn O. PearceJun 13, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.