Re: minor compiler warning in backend/utils/adt/tsrank.c - Mailing list pgsql-patches

From Teodor Sigaev
Subject Re: minor compiler warning in backend/utils/adt/tsrank.c
Date
Msg-id 46F2B93C.6050709@sigaev.ru
Whole thread Raw
In response to minor compiler warning in backend/utils/adt/tsrank.c  (Hannes Eder <Hannes@HannesEder.net>)
List pgsql-patches
Thank you, committed

Hannes Eder wrote:
> while rebuilding postgres with msvc 2005 I noticed some minor compiler
> warnings:
>
> .\src\backend\utils\adt\tsrank.c(24): warning C4305: 'initializing' :
> truncation from 'double' to 'float'
> .\src\backend\utils\adt\tsrank.c(24): warning C4305: 'initializing' :
> truncation from 'double' to 'float'
> .\src\backend\utils\adt\tsrank.c(24): warning C4305: 'initializing' :
> truncation from 'double' to 'float'
> .\src\backend\utils\adt\tsrank.c(46): warning C4305: 'return' :
> truncation from 'double' to 'float4'
> .\src\backend\utils\adt\tsrank.c(339): warning C4305: '=' : truncation
> from 'double' to 'float'
>
> see attached diff
>
> -Hannes
>
>
> ------------------------------------------------------------------------
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

pgsql-patches by date:

Previous
From: sayali k
Date:
Subject: Re: Implementation of aggregate functions
Next
From: Andrew Dunstan
Date:
Subject: Re: Various fixes for syslogger