Skip to content

Commit

Permalink
fix: changed ssize_t to size_t to avoid warnings due to type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Skryvvara committed Jul 22, 2024
1 parent 1cae3b9 commit 2512b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

char* read_line(void) {
char* line = NULL;
ssize_t bufsize = 0;
size_t bufsize = 0;

if (getline(&line, &bufsize, stdin) == -1) {
if (feof(stdin)) {
Expand Down

0 comments on commit 2512b06

Please sign in to comment.