No need for += when res is 0 anyway
This commit is contained in:
		
							
								
								
									
										2
									
								
								sort.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								sort.c
									
									
									
									
									
								
							@@ -195,7 +195,7 @@ linecmp(struct linebufline *a, struct linebufline *b)
 | 
				
			|||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			if (!(res = memcmp(col1.data, col2.data,
 | 
								if (!(res = memcmp(col1.data, col2.data,
 | 
				
			||||||
			                   MIN(col1.len, col2.len)))) {
 | 
								                   MIN(col1.len, col2.len)))) {
 | 
				
			||||||
				res += col1.data[MIN(col1.len, col2.len)] -
 | 
									res = col1.data[MIN(col1.len, col2.len)] -
 | 
				
			||||||
				      col2.data[MIN(col1.len, col2.len)];
 | 
									      col2.data[MIN(col1.len, col2.len)];
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user