Use size_t for strlen() return value
BUG=skia:2810 Review URL: https://codereview.chromium.org/1518843002
This commit is contained in:
parent
70ee31b2fa
commit
9fba909792
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user