From 518685818c52fcd5504405aed9d624eb5aafbd0e Mon Sep 17 00:00:00 2001 From: Explorer09 Date: Sat, 29 Jul 2023 16:20:14 +0800 Subject: 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 --- Process.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Process.h') diff --git a/Process.h b/Process.h index ad89fd45..88416478 100644 --- a/Process.h +++ b/Process.h @@ -380,7 +380,7 @@ void Process_fillStarttimeBuffer(Process* this); void Process_printLeftAlignedField(RichString* str, int attr, const char* content, unsigned int width); -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); void Process_display(const Object* cast, RichString* out); -- cgit v1.2.3