mirror of https://github.com/xzeldon/htop.git
Resolve conversion from int to char
This commit is contained in:
parent
1e9b184367
commit
f0a9dfc37e
2
Meter.c
2
Meter.c
|
@ -393,7 +393,7 @@ static void LEDMeterMode_draw(Meter* this, int x, int y, int w) {
|
||||||
int xx = x + strlen(this->caption);
|
int xx = x + strlen(this->caption);
|
||||||
int len = RichString_sizeVal(out);
|
int len = RichString_sizeVal(out);
|
||||||
for (int i = 0; i < len; i++) {
|
for (int i = 0; i < len; i++) {
|
||||||
char c = RichString_getCharVal(out, i);
|
int c = RichString_getCharVal(out, i);
|
||||||
if (c >= '0' && c <= '9') {
|
if (c >= '0' && c <= '9') {
|
||||||
LEDMeterMode_drawDigit(xx, y, c - 48);
|
LEDMeterMode_drawDigit(xx, y, c - 48);
|
||||||
xx += 4;
|
xx += 4;
|
||||||
|
|
Loading…
Reference in New Issue