h2: fix implementation of Value.gt not actually being a greater-than operation
how did I miss that (a < b) is the same as (b > a) is beyond me
This commit is contained in:
		
							parent
							
								
									958201cd18
								
							
						
					
					
						commit
						c4ad609717
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -48,7 +48,7 @@ pub const Value = union(enum) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    pub fn gt(a: Value, b: Value) ?bool {
 | 
			
		||||
        return !a.eql(b) and !(a.lt(b) orelse return null);
 | 
			
		||||
        return b.lt(a);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    pub fn typeName(value: Value) []const u8 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue