From d36bb13f52b3899fd0f57e38f00d97e2c3a0f627 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Sat, 18 Mar 2023 12:40:46 -0400 Subject: -Wconversion --- libalee/ctype.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'libalee/ctype.cpp') diff --git a/libalee/ctype.cpp b/libalee/ctype.cpp index a0c8dc1..547cd11 100644 --- a/libalee/ctype.cpp +++ b/libalee/ctype.cpp @@ -22,31 +22,15 @@ bool isspace(uint8_t c) { return c == ' ' || c == '\t' || c == '\r' || c == '\n'; } -bool isspace(char c) { - return isspace(static_cast(c)); -} - bool isdigit(uint8_t c) { return c >= '0' && c <= '9'; } -bool isdigit(char c) { - return isdigit(static_cast(c)); -} - bool isalpha(uint8_t c) { return isupper(c) || (c >= 'a' && c <= 'z'); } -bool isalpha(char c) { - return isalpha(static_cast(c)); -} - bool isupper(uint8_t c) { return c >= 'A' && c <= 'Z'; } -bool isupper(char c) { - return isupper(static_cast(c)); -} - -- cgit v1.2.3