]> git.sur5r.net Git - i3/i3/blobdiff - src/commands_parser.c
Fix clang -Wextra except -Wunused-parameter.
[i3/i3] / src / commands_parser.c
index 4f04501c21408d02930e43c4285d9c20f03cc78e..05d39cff53790ef42ed61ab1e896a137f19a3984 100644 (file)
@@ -232,7 +232,7 @@ struct CommandResult *parse_command(const char *input) {
 
     /* The "<=" operator is intentional: We also handle the terminating 0-byte
      * explicitly by looking for an 'end' token. */
-    while ((walk - input) <= len) {
+    while ((size_t)(walk - input) <= len) {
         /* skip whitespace and newlines before every token */
         while ((*walk == ' ' || *walk == '\t' ||
                 *walk == '\r' || *walk == '\n') && *walk != '\0')