mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-23 00:28:11 +00:00
Fix datatypes in inc_zip_inflate.cl
This commit is contained in:
parent
139ace28a9
commit
851a129d79
@ -178,26 +178,34 @@ typedef int mz_bool;
|
|||||||
|
|
||||||
typedef mz_uint64 tinfl_bit_buf_t;
|
typedef mz_uint64 tinfl_bit_buf_t;
|
||||||
|
|
||||||
DECLSPEC void memcpy(void *dest, const void *src, u32 n){
|
DECLSPEC void memcpy (void *dest, const void *src, u32 n)
|
||||||
char *csrc = (char *)src;
|
{
|
||||||
char *cdest = (char *)dest;
|
char *csrc = (char *) src;
|
||||||
for (int i=0; i<n; i++){
|
char *cdest = (char *) dest;
|
||||||
|
|
||||||
|
for (int i = 0; i < n; i++)
|
||||||
|
{
|
||||||
cdest[i] = csrc[i];
|
cdest[i] = csrc[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DECLSPEC void *memset (u8 *s, const int c, u32 len)
|
||||||
|
{
|
||||||
|
const u8 c8 = (const u8) c;
|
||||||
|
|
||||||
DECLSPEC void *memset(u8 *s, int c, u32 len){
|
|
||||||
u8 *dst = s;
|
u8 *dst = s;
|
||||||
while (len > 0) {
|
|
||||||
*dst = (u8) c;
|
while (len > 0)
|
||||||
dst++;
|
{
|
||||||
len--;
|
*dst = c8;
|
||||||
|
|
||||||
|
dst++;
|
||||||
|
len--;
|
||||||
}
|
}
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
|
#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
|
||||||
#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
|
#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||||
#define MZ_DEFAULT_WINDOW_BITS 15
|
#define MZ_DEFAULT_WINDOW_BITS 15
|
||||||
|
Loading…
Reference in New Issue
Block a user