mirror of
				https://gitflic.ru/project/erthink/libmdbx.git
				synced 2025-11-04 06:16:41 +00:00 
			
		
		
		
	mdbx: minor clean-up tautology in assertion.
This commit is contained in:
		
							parent
							
								
									aafe0f0fba
								
							
						
					
					
						commit
						43c4503a77
					
				@ -236,7 +236,7 @@ enum cursor_checking {
 | 
			
		||||
MDBX_INTERNAL int __must_check_result cursor_validate(const MDBX_cursor *mc);
 | 
			
		||||
 | 
			
		||||
MDBX_MAYBE_UNUSED MDBX_NOTHROW_PURE_FUNCTION static inline size_t cursor_dbi(const MDBX_cursor *mc) {
 | 
			
		||||
  cASSERT(mc, mc->txn && mc->txn->signature == txn_signature);
 | 
			
		||||
  cASSERT(mc, mc->txn->signature == txn_signature);
 | 
			
		||||
  size_t dbi = mc->dbi_state - mc->txn->dbi_state;
 | 
			
		||||
  cASSERT(mc, dbi < mc->txn->env->n_dbi);
 | 
			
		||||
  return dbi;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user