diff --git a/OpenCL/inc_zip_inflate.cl b/OpenCL/inc_zip_inflate.cl index 00f762d81..3720ae570 100644 --- a/OpenCL/inc_zip_inflate.cl +++ b/OpenCL/inc_zip_inflate.cl @@ -178,26 +178,34 @@ typedef int mz_bool; typedef mz_uint64 tinfl_bit_buf_t; -DECLSPEC void memcpy(void *dest, const void *src, u32 n){ - char *csrc = (char *)src; - char *cdest = (char *)dest; - for (int i=0; i 0) { - *dst = (u8) c; - dst++; - len--; + + while (len > 0) + { + *dst = c8; + + dst++; + len--; } + return s; } - #define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b)) #define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b)) #define MZ_DEFAULT_WINDOW_BITS 15