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@gmail.com>
This commit is contained in:
X512 2020-03-23 09:44:47 +09:00 committed by waddlesplash
parent bf9093e794
commit 663c9749e1

View File

@ -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]);
}