1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

zlib: Use correct (un)signedness of char in prototypes and functions.

Also ensure we are using the same constness qualifiers.
This commit is contained in:
acqn 2021-03-23 15:30:08 +08:00 committed by Oliver Schmidt
parent cb8fbf4772
commit 31c1172a3a
3 changed files with 8 additions and 4 deletions

View File

@ -114,7 +114,8 @@ int __fastcall__ uncompress (unsigned char* dest, unsigned* destLen,
*/ */
unsigned long __fastcall__ adler32 (unsigned long adler, const char* buf, unsigned long __fastcall__ adler32 (unsigned long adler,
const unsigned char* buf,
unsigned len); unsigned len);
/* /*
@ -140,7 +141,8 @@ unsigned long __fastcall__ adler32 (unsigned long adler, const char* buf,
*/ */
unsigned long __fastcall__ crc32 (unsigned long crc, const char* buf, unsigned long __fastcall__ crc32 (unsigned long crc,
const unsigned char* buf,
unsigned len); unsigned len);
/* /*
Original zlib description: Original zlib description:

View File

@ -2,7 +2,8 @@
; 2001-11-18, Piotr Fusik ; 2001-11-18, Piotr Fusik
; 2018-05-20, Christian Kruger ; 2018-05-20, Christian Kruger
; ;
; unsigned long __fastcall__ adler32 (unsigned long adler, unsigned char* buf, ; unsigned long __fastcall__ adler32 (unsigned long adler,
; const unsigned char* buf,
; unsigned len); ; unsigned len);
; ;

View File

@ -2,7 +2,8 @@
; 2001-11-14, Piotr Fusik ; 2001-11-14, Piotr Fusik
; 2018-05-20, Christian Kruger ; 2018-05-20, Christian Kruger
; ;
; unsigned long __fastcall__ crc32 (unsigned long crc, unsigned char* buf, ; unsigned long __fastcall__ crc32 (unsigned long crc,
; const unsigned char* buf,
; unsigned len); ; unsigned len);
; ;