summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/eglmisc.c')
-rw-r--r--src/egl/main/eglmisc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/main/eglmisc.c b/src/egl/main/eglmisc.c
index e62a9e7de8c..4652969659b 100644
--- a/src/egl/main/eglmisc.c
+++ b/src/egl/main/eglmisc.c
@@ -45,7 +45,7 @@ static EGLint
_eglAppendExtension(char **str, const char *ext)
{
char *s = *str;
- EGLint len = strlen(ext);
+ size_t len = strlen(ext);
if (s) {
memcpy(s, ext, len);
@@ -58,7 +58,7 @@ _eglAppendExtension(char **str, const char *ext)
len++;
}
- return len;
+ return (EGLint) len;
}