diff options
author | Explorer09 <explorer09@gmail.com> | 2023-07-29 16:20:14 +0800 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-08-18 12:52:28 +0200 |
commit | 518685818c52fcd5504405aed9d624eb5aafbd0e (patch) | |
tree | 570700cdf539c3b01697196222c0c06b259fb0d8 /Process.c | |
parent | 3d2f5e1a1a77dbc1613d15a61a5ce79e3cb8d505 (diff) |
Minor data type fixes in Process.c and PCPProcess.c
In PCPProcess_writeField(), the "n" variable should be size_t type.
The "n" parameters of Process_printPercentage() and
PCPProcess_printDelay() should be size_t type as well.
Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'Process.c')
-rw-r--r-- | Process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -789,7 +789,7 @@ void Process_printLeftAlignedField(RichString* str, int attr, const char* conten RichString_appendChr(str, attr, ' ', width + 1 - columns); } -void Process_printPercentage(float val, char* buffer, int n, uint8_t width, int* attr) { +void Process_printPercentage(float val, char* buffer, size_t n, uint8_t width, int* attr) { if (val >= 0) { if (val < 0.05F) *attr = CRT_colors[PROCESS_SHADOW]; |