]> git.scottworley.com Git - tl-append/commitdiff
appease clang-tidy: Don't do unnecessary size_t→int narrowing conversion
authorScott Worley <scottworley@scottworley.com>
Wed, 13 Sep 2023 18:41:36 +0000 (11:41 -0700)
committerScott Worley <scottworley@scottworley.com>
Wed, 13 Sep 2023 18:41:36 +0000 (11:41 -0700)
Why does fgets take an int instead of a size_t?  :(

tl-append.c

index c4a4ac66d8036a1c3b299f11d6002b99bf0add08..3e60a249f3e49d403674b8f53ea8f9653ccc768d 100644 (file)
@@ -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 */