From 663c9749e166d8c74c8d2a171af29bca99ff75fc Mon Sep 17 00:00:00 2001 From: X512 Date: Mon, 23 Mar 2020 09:44:47 +0900 Subject: [PATCH] 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 --- src/apps/pulse/NormalPulseView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }