From 3c2bece87f24c5051cad450201d7c73f1f6be606 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 1 May 2020 18:38:45 +0200 Subject: [PATCH] prevent MINGW compiler warnings --- src/xspice/cmpp/writ_ifs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xspice/cmpp/writ_ifs.c b/src/xspice/cmpp/writ_ifs.c index e1ab2d5e6..705228bc1 100644 --- a/src/xspice/cmpp/writ_ifs.c +++ b/src/xspice/cmpp/writ_ifs.c @@ -1220,11 +1220,11 @@ static char *value_to_str(Data_Type_t type, Value_t value) /* be careful, the string could conceivably be very long... */ str_len = (int) strlen(value.svalue); if ((str_len + BASE_STR_LEN) > max_len) { - size_t n_byte_alloc = max_len + str_len + 1; + int n_byte_alloc = max_len + str_len + 1; void * const p = realloc(str, n_byte_alloc); if (p == NULL) { - (void) fprintf(stderr, "Unable to resize string " - "buffer to size %zu.\n", + (void) fprintf(stderr, + "Unable to resize string buffer to size %d.\n", n_byte_alloc); free(str); return (char *) NULL;