mirror of
				https://github.com/eledio-devices/thirdparty-miniz.git
				synced 2025-10-31 08:42:39 +01:00 
			
		
		
		
	remove redundant condition
L#1067 asserts that (match_len >= TDEFL_MIN_MATCH_LEN)
This commit is contained in:
		| @@ -1074,8 +1074,6 @@ static MZ_FORCEINLINE void tdefl_record_match(tdefl_compressor *d, mz_uint match | |||||||
|     s0 = s_tdefl_small_dist_sym[match_dist & 511]; |     s0 = s_tdefl_small_dist_sym[match_dist & 511]; | ||||||
|     s1 = s_tdefl_large_dist_sym[(match_dist >> 8) & 127]; |     s1 = s_tdefl_large_dist_sym[(match_dist >> 8) & 127]; | ||||||
|     d->m_huff_count[1][(match_dist < 512) ? s0 : s1]++; |     d->m_huff_count[1][(match_dist < 512) ? s0 : s1]++; | ||||||
|  |  | ||||||
|     if (match_len >= TDEFL_MIN_MATCH_LEN) |  | ||||||
|     d->m_huff_count[0][s_tdefl_len_sym[match_len - TDEFL_MIN_MATCH_LEN]]++; |     d->m_huff_count[0][s_tdefl_len_sym[match_len - TDEFL_MIN_MATCH_LEN]]++; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user