diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-02-27 09:22:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-27 09:22:47 +0100 |
commit | 426a6fdc17227715d397f8c09849ce0673b37e64 (patch) | |
tree | 9661566abc64fb26d2f0aeeec1d8fd35d39660f3 /platform | |
parent | 0ba75c195efffcb098ac74440ffb0fa9c85d0d96 (diff) | |
parent | e5f665c7187b6934a71169cab5075f899150f17a (diff) |
Merge pull request #26134 from marxin/fix-Wsign-compare
Fix -Wsign-compare warnings.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/x11/detect_prime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/x11/detect_prime.cpp b/platform/x11/detect_prime.cpp index 04a825fac9..0fde2a0c04 100644 --- a/platform/x11/detect_prime.cpp +++ b/platform/x11/detect_prime.cpp @@ -180,8 +180,8 @@ int detect_prime() { const char *vendor = (const char *)glGetString(GL_VENDOR); const char *renderer = (const char *)glGetString(GL_RENDERER); - int vendor_len = strlen(vendor) + 1; - int renderer_len = strlen(renderer) + 1; + unsigned int vendor_len = strlen(vendor) + 1; + unsigned int renderer_len = strlen(renderer) + 1; if (vendor_len + renderer_len >= sizeof(string)) { renderer_len = 200 - vendor_len; |