[libgweather] don't use non-standard 'd' suffix on float literal
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgweather] don't use non-standard 'd' suffix on float literal
- Date: Tue, 10 Dec 2013 18:48:11 +0000 (UTC)
commit b536449dc01f4fe6f332a96e65e7707c00cc06bb
Author: Ryan Lortie <desrt desrt ca>
Date: Tue Dec 10 13:02:09 2013 -0500
don't use non-standard 'd' suffix on float literal
C does not define the 'd' suffix for floating point literals. In fact,
'double' is the default type of literals if not modified by 'f' (float)
or 'l' (long float).
Additionally: 'float' arguments are automatically upcasted to 'double'
when passing through a varargs list, so this wouldn't be needed in any
case.
This problem was causing failures to build with clang.
https://bugzilla.gnome.org/show_bug.cgi?id=720207
libgweather/gweather-location.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgweather/gweather-location.c b/libgweather/gweather-location.c
index ca840f1..d2d9c27 100644
--- a/libgweather/gweather-location.c
+++ b/libgweather/gweather-location.c
@@ -995,8 +995,8 @@ gweather_location_format_one_serialize (GWeatherLocation *location)
location->latitude,
location->longitude,
location->parent && location->parent->latlon_valid,
- location->parent ? location->parent->latitude : 0.0d,
- location->parent ? location->parent->longitude : 0.0d);
+ location->parent ? location->parent->latitude : 0.0,
+ location->parent ? location->parent->longitude : 0.0);
}
GWeatherLocation *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]