cast to char c

This commit is contained in:
LinlyBoi
2023-08-21 13:00:04 +03:00
parent 56c807a9cd
commit c90057710a

View File

@@ -38,7 +38,7 @@ int _printf(const char *format, ...)
break; break;
case 'c': /* add 1 byte and i++ */ case 'c': /* add 1 byte and i++ */
c = va_arg(args, int); c = va_arg(args, int);
*(buffer + buff_idx + 1) = c; *(buffer + buff_idx + 1) = (char) c;
BUFF_SIZE = _strlen(buffer); BUFF_SIZE = _strlen(buffer);
buff_idx += 1; buff_idx += 1;
fmt_idx += 2; fmt_idx += 2;