diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 13:26:00 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-08 13:26:00 -0800 |
commit | 6bb053f46101e659c4f3a877bf8d17ad37a23225 (patch) | |
tree | 6ac8e90ee9b6e166a176cf064274bf7d0537fef5 | |
parent | 04f4911bedc988b917a268978d9592780aa34651 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |