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:
parent
bf9093e794
commit
663c9749e1
@ -80,7 +80,7 @@ NormalPulseView::NormalPulseView(BRect rect)
|
|||||||
CPUBUTTON_MLEFT + CPUBUTTON_WIDTH + 7,
|
CPUBUTTON_MLEFT + CPUBUTTON_WIDTH + 7,
|
||||||
CPUBUTTON_MTOP + ITEM_OFFSET * x + CPUBUTTON_HEIGHT + 7);
|
CPUBUTTON_MTOP + ITEM_OFFSET * x + CPUBUTTON_HEIGHT + 7);
|
||||||
char temp[4];
|
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);
|
fCpuButtons[x] = new CPUButton(r, B_TRANSLATE("Pulse"), temp, NULL);
|
||||||
AddChild(fCpuButtons[x]);
|
AddChild(fCpuButtons[x]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user