From: scroggo Date: Thu, 10 Dec 2015 21:46:04 +0000 (-0800) Subject: Use size_t for strlen() return value X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~184^2~359 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9fba90979243501d2348d1539ad2bb0bdf411b5b;p=platform%2Fupstream%2FlibSkiaSharp.git Use size_t for strlen() return value BUG=skia:2810 Review URL: https://codereview.chromium.org/1518843002 --- diff --git a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp index 591cae3..3b2488d 100644 --- a/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp +++ b/src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp @@ -277,7 +277,7 @@ GrGLFuncPtr EGLGLContext::onPlatformGetProcAddress(const char* procName) const { } static bool supports_egl_extension(EGLDisplay display, const char* extension) { - int extensionLength = strlen(extension); + size_t extensionLength = strlen(extension); const char* extensionsStr = eglQueryString(display, EGL_EXTENSIONS); while (const char* match = strstr(extensionsStr, extension)) { // Ensure the string we found is its own extension, not a substring of a larger extension