Merge pull request #3102 from rubenk/oauth-fix-compiler-warning
authorPavel Rochnyak <pavel2000@ngs.ru>
Wed, 20 Feb 2019 11:37:40 +0000 (18:37 +0700)
committerGitHub <noreply@github.com>
Wed, 20 Feb 2019 11:37:40 +0000 (18:37 +0700)
oauth.c: fix compiler warning

src/utils/oauth/oauth.c

index 671de84..4b31056 100644 (file)
@@ -280,7 +280,7 @@ static int get_assertion(oauth_t *auth, char *buffer,
   status = snprintf(buffer, buffer_size, "%s.%s.%s", header, claim, signature);
   if (status < 1)
     return -1;
-  else if (status >= buffer_size)
+  else if ((size_t)status >= buffer_size)
     return ENOMEM;
 
   return 0;