mirror of
https://git.sr.ht/~sircmpwn/gmni
synced 2024-06-10 13:36:02 +02:00
Fix const comparison Werror
This commit is contained in:
parent
75087ce65f
commit
514cb37301
|
@ -212,7 +212,7 @@ gemini_request(const char *url, struct gemini_options *options,
|
|||
|
||||
char *endptr;
|
||||
resp->status = (enum gemini_status)strtol(buf, &endptr, 10);
|
||||
if (*endptr != ' ' || resp->status < 10 || resp->status >= 70) {
|
||||
if (*endptr != ' ' || resp->status < 10 || (int)resp->status >= 70) {
|
||||
fprintf(stderr, "invalid status\n");
|
||||
res = GEMINI_ERR_PROTOCOL;
|
||||
goto cleanup;
|
||||
|
|
Loading…
Reference in New Issue