diff --git a/gb.xml/src/utils.cpp b/gb.xml/src/utils.cpp index 132b222a0..3c9325f30 100644 --- a/gb.xml/src/utils.cpp +++ b/gb.xml/src/utils.cpp @@ -28,9 +28,9 @@ #include #ifdef OS_MACOSX -void *memrchr(void *s, int c, size_t n) +void *memrchr(const char *s, int c, size_t n) { - void *start=s,*end=(s+n-1); + const char *start=s,*end=(s+n-1); while(end>=start) {