summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 13:26:00 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-08 13:26:00 -0800
commit6bb053f46101e659c4f3a877bf8d17ad37a23225 (patch)
tree6ac8e90ee9b6e166a176cf064274bf7d0537fef5
parent04f4911bedc988b917a268978d9592780aa34651 (diff)
Remove unnecessary downcast of double to float
The printf family always takes double arguments, not float. Clears clang warning of: xdpyinfo.c:767:5: warning: implicit conversion increases floating-point precision: 'float' to 'double' [-Wdouble-promotion] (float)dotclock/1000.0, ^~~~~~~~~~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xdpyinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 6c2c4e3..06681b9 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -764,7 +764,7 @@ print_XF86VidMode_modeline(
unsigned int flags)
{
printf(" %6.2f %4d %4d %4d %4d %4d %4d %4d %4d ",
- (float)dotclock/1000.0,
+ dotclock/1000.0,
hdisplay, hsyncstart, hsyncend, htotal,
vdisplay, vsyncstart, vsyncend, vtotal);
if (flags & V_PHSYNC) printf(" +hsync");