[Libpqxx-general] Error with gcc 4.3, was: pqxx::connection crash under libpqxx 2.6.9 and 3.0.0, OSX Leopard
Jeroen Vermeulen
jtv at xs4all.nl
Wed Jul 23 07:54:20 UTC 2008
Kim Bisgaard wrote:
> Hi,
>
> This you get for opening your big mouth, Kim ....
>
> This patch silences gcc - I do not vouch for that it is the "correct"
> solution:
> --- src/util.cxx (revision 1350)
> +++ src/util.cxx (working copy)
> @@ -102,7 +102,7 @@
> template<typename L, typename R>
> inline L absorb_digit(L value, R digit) throw ()
> {
> - return 10*value + L(digit);
> + return L(10*value + L(digit));
> }
Both value and L(digit) are of type L (which is a short in this case),
but 10 is an int. And int*short produces int.
Jeroen
More information about the Libpqxx-general
mailing list