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

Re: [PATCH] Fix ptrdiff_t vs. int

From
Linus Torvalds <torvalds@osdl.org>
Date
May 27, 2005, 17:18 UTC
Message-ID
<Pine.LNX.4.58.0505271013260.17402@ppc970.osdl.org>
In-Reply-To
<42971EB4.2050403@oberhumer.com>
On Fri, 27 May 2005, Markus F.X.J. Oberhumer wrote:
>
> This trivial patch fixes an obvious ptrdiff_t vs. int mismatch. Which
> makes we wonder why Linus isn't hitting this on his ppc64 - maybe it's
> time to start using -Werror...

My _kernel_ is 64-bit, but my user-space is all 32-bit because (a) I don't care about user-space and (b) I'm lazy and (c) all the distributions contain just 32-bit programs and a ppc64 kernel has no trouble running 32-bit programs.

I can compile a kernel with "-m64", but since I don't have any 64-bit libraries installed, user space doesn't work that well ;)

		Linus
Previous: H. Peter AnvinNext: Linus Torvalds
Message 5 of 13 in “Fix ptrdiff_t vs. int”
  1. Fix ptrdiff_t vs. intMarkus F.X.J. Oberhumer, May 27, 2005
  2. Danjel McGouganMay 27, 2005
  3. Morten WelinderMay 27, 2005
  4. H. Peter AnvinMay 27, 2005
  5. Linus TorvaldsMay 27, 2005
  6. Linus TorvaldsMay 27, 2005
  7. Markus F.X.J. OberhumerMay 27, 2005
  8. H. Peter AnvinMay 27, 2005
  9. Linus TorvaldsMay 27, 2005
  10. Junio C HamanoMay 27, 2005
  11. Adjust diff-helper to diff-tree -v -z changes.Junio C Hamano, May 28, 2005
  12. Linus TorvaldsMay 29, 2005
  13. Junio C HamanoMay 29, 2005

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.