update for HEAD-2003021201
[reactos.git] / lib / msvcrt / search / lsearch.c
index a1ada3f..8434ebb 100644 (file)
@@ -10,7 +10,11 @@ void *_lsearch(const void *key, void *base, size_t *nelp, size_t width,
   if (ret_find != NULL)
     return ret_find;
 
+#ifdef __GNUC__
   memcpy(base + (*nelp*width), key, width);
+#else
+  memcpy((int*)base + (*nelp*width), key, width);
+#endif
   (*nelp)++;
   return base;
 }