[GRASS-git] [OSGeo/grass] 795f87: lib/psdriver: Print double coordinates with %f, no...
Corey White
noreply at github.com
Tue Jul 14 10:21:00 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 795f878d4b64042f46a875197e57d3199308b1cb
https://github.com/OSGeo/grass/commit/795f878d4b64042f46a875197e57d3199308b1cb
Author: Corey White <smortopahri at gmail.com>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M lib/psdriver/draw_bitmap.c
M lib/psdriver/erase.c
Log Message:
-----------
lib/psdriver: Print double coordinates with %f, not %d (#7700)
PS_Bitmap passed the double cur_x and cur_y and PS_Erase passed the
double ps.left, ps.top, ps.right and ps.bot to output() as %d. On
x86_64 this reads the wrong varargs registers, so BITMAP and BOX
received garbage operands. Use %f as box.c already does for the same
BOX procedure.
Fixes 6 CodeQL cpp/wrong-type-format-argument alerts.
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list