[haiku-commits] haiku: hrev54014 - src/apps/pulse

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 28 Mar 2020 16:04:57 -0400 (EDT)

hrev54014 adds 1 changeset to branch 'master'
old head: bf9093e79443b7a3cf8986999e20a7fe0626abdc
new head: 663c9749e166d8c74c8d2a171af29bca99ff75fc
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=663c9749e166+%5Ebf9093e79443

----------------------------------------------------------------------------

663c9749e166: Pulse: fix type for format string
  
  Pointed by clang.
  
  Change-Id: I3809c15ccc7c1f268ac3d9088896d7cd1488226d
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/2405
  Reviewed-by: waddlesplash <waddlesplash@xxxxxxxxx>

                                              [ X512 <danger_mail@xxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev54014
Commit:      663c9749e166d8c74c8d2a171af29bca99ff75fc
URL:         https://git.haiku-os.org/haiku/commit/?id=663c9749e166
Author:      X512 <danger_mail@xxxxxxx>
Date:        Mon Mar 23 00:44:47 2020 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Sat Mar 28 20:04:49 2020 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/apps/pulse/NormalPulseView.cpp | 2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/pulse/NormalPulseView.cpp 
b/src/apps/pulse/NormalPulseView.cpp
index 5e3a3003e0..5bed79e1bb 100644
--- a/src/apps/pulse/NormalPulseView.cpp
+++ b/src/apps/pulse/NormalPulseView.cpp
@@ -80,7 +80,7 @@ NormalPulseView::NormalPulseView(BRect rect)
                        CPUBUTTON_MLEFT + CPUBUTTON_WIDTH + 7,
                        CPUBUTTON_MTOP + ITEM_OFFSET * x + CPUBUTTON_HEIGHT + 
7);
                char temp[4];
-               snprintf(temp, sizeof(temp), "%hhd", x + 1);
+               snprintf(temp, sizeof(temp), "%hhd", int8(x + 1));
                fCpuButtons[x] = new CPUButton(r, B_TRANSLATE("Pulse"), temp, 
NULL);
                AddChild(fCpuButtons[x]);
        }


Other related posts:

  • » [haiku-commits] haiku: hrev54014 - src/apps/pulse - waddlesplash