summaryrefslogtreecommitdiff
path: root/src/connection.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-11 23:36:20 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-14 09:36:38 -0400
commitf5df38959b14426f648b3359821457786e43e396 (patch)
tree1dfe052fd8e63e6337403aa32c631c9dd8a8ad28 /src/connection.c
parentfefa8c0fd5fe9b186ca1acffcc077badbd81b5ba (diff)
Optimize wl_fixed_t to/from double conversion functions
Diffstat (limited to 'src/connection.c')
-rw-r--r--src/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connection.c b/src/connection.c
index a888940..5b7965e 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -853,7 +853,7 @@ wl_closure_print(struct wl_closure *closure, struct wl_object *target, int send)
break;
case 'f':
si = (int32_t) value->uint32;
- fprintf(stderr, "%f", (double) si / 256.0);
+ fprintf(stderr, "%f", wl_fixed_to_double(si));
break;
case 's':
fprintf(stderr, "\"%s\"", value->string);