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

Re: [PATCH 1/2] Fix a warning about conversion to float

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 6, 2012, 18:58 UTC
Message-ID
<7v62ehtv3l.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1331024077-5736-1-git-send-email-user@vincent-VirtualBox>
Vincent van Ravesteijn <vfr@lyx.org> writes:
> From: Vincent van Ravesteijn <vfr@lyx.org>
>
> Below in the same function, val is correctly casted to a float. Do this also
> for the initialization of x.
Hrm, is it correctly casted or needlessly casted?
It is unclear what problem you are trying to solve here.
Show 6 quoted lines
> @@ -550,6 +550,7 @@ static int sqrti(int val)
>  	return (int)x;
>  }
>  
> +
>  static struct commit_list *skip_away(struct commit_list *list, int count)
Huh?
Previous: Junio C Hamano
Message 4 of 4 in “Fix a warning about conversion to float”
  1. 1/2 Fix a warning about conversion to floatVincent van Ravesteijn, Mar 6, 2012
  2. 2/2 Disambiguate PREFIX define in sideband.cVincent van Ravesteijn, Mar 6, 2012
  3. Junio C HamanoMar 6, 2012
  4. Junio C HamanoMar 6, 2012

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.