From: Scott Worley Date: Wed, 13 Sep 2023 18:41:36 +0000 (-0700) Subject: appease clang-tidy: Don't do unnecessary size_t→int narrowing conversion X-Git-Tag: v1.0.0~11 X-Git-Url: http://git.scottworley.com/tl-append/commitdiff_plain/4b4feda25fa71fa0e695206bff02c90613b1f7a8?ds=sidebyside appease clang-tidy: Don't do unnecessary size_t→int narrowing conversion Why does fgets take an int instead of a size_t? :( --- diff --git a/tl-append.c b/tl-append.c index c4a4ac6..3e60a24 100644 --- a/tl-append.c +++ b/tl-append.c @@ -9,7 +9,7 @@ #include "common.h" -const size_t BUF_SIZE = 1024; +const int BUF_SIZE = 1024; const char PROMPT[] = "\33[H" /* Move cursor 'home' */ "\33[J" /* Clear screen */