explicitly cast getchar return

This commit is contained in:
Roland W-H 2022-11-19 16:45:48 +00:00
parent 4ba0eab83e
commit 236dbce306
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ char* dyninput_str(int_least64_t maxsize)
{
c = getchar();
if (i + 2 == size)
c = (char)getchar();
if (i + 1 == size)
{
char* tmp = realloc(str, size + 1);