mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 00:32:38 +01:00 
			
		
		
		
	Fix "'&array' may not produce intended result" warnings with OpenWatcom
Co-authored-by: sezero <sezero@users.noreply.github.com>
This commit is contained in:
		| @@ -292,7 +292,7 @@ tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_nex | ||||
|                     TINFL_GET_BITS(11, r->m_table_sizes[counter], "\05\05\04"[counter]); | ||||
|                     r->m_table_sizes[counter] += s_min_table_sizes[counter]; | ||||
|                 } | ||||
|                 MZ_CLEAR_OBJ(r->m_tables[2].m_code_size); | ||||
|                 MZ_CLEAR_ARR(r->m_tables[2].m_code_size); | ||||
|                 for (counter = 0; counter < r->m_table_sizes[2]; counter++) | ||||
|                 { | ||||
|                     mz_uint s; | ||||
| @@ -307,9 +307,9 @@ tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_nex | ||||
|                 tinfl_huff_table *pTable; | ||||
|                 mz_uint i, j, used_syms, total, sym_index, next_code[17], total_syms[16]; | ||||
|                 pTable = &r->m_tables[r->m_type]; | ||||
|                 MZ_CLEAR_OBJ(total_syms); | ||||
|                 MZ_CLEAR_OBJ(pTable->m_look_up); | ||||
|                 MZ_CLEAR_OBJ(pTable->m_tree); | ||||
|                 MZ_CLEAR_ARR(total_syms); | ||||
|                 MZ_CLEAR_ARR(pTable->m_look_up); | ||||
|                 MZ_CLEAR_ARR(pTable->m_tree); | ||||
|                 for (i = 0; i < r->m_table_sizes[r->m_type]; ++i) | ||||
|                     total_syms[pTable->m_code_size[i]]++; | ||||
|                 used_syms = 0, total = 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user