mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Fix "Comparison result always 0" warnings with OpenWatcom
This commit is contained in:
		
							
								
								
									
										4
									
								
								miniz.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								miniz.c
									
									
									
									
									
								
							| @@ -320,7 +320,7 @@ int mz_compress2(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char | ||||
|     memset(&stream, 0, sizeof(stream)); | ||||
|  | ||||
|     /* In case mz_ulong is 64-bits (argh I hate longs). */ | ||||
|     if ((source_len | *pDest_len) > 0xFFFFFFFFU) | ||||
|     if ((mz_uint64)(source_len | *pDest_len) > 0xFFFFFFFFU) | ||||
|         return MZ_PARAM_ERROR; | ||||
|  | ||||
|     stream.next_in = pSource; | ||||
| @@ -559,7 +559,7 @@ int mz_uncompress2(unsigned char *pDest, mz_ulong *pDest_len, const unsigned cha | ||||
|     memset(&stream, 0, sizeof(stream)); | ||||
|  | ||||
|     /* In case mz_ulong is 64-bits (argh I hate longs). */ | ||||
|     if ((*pSource_len | *pDest_len) > 0xFFFFFFFFU) | ||||
|     if ((mz_uint64)(*pSource_len | *pDest_len) > 0xFFFFFFFFU) | ||||
|         return MZ_PARAM_ERROR; | ||||
|  | ||||
|     stream.next_in = pSource; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user