mirror of
				https://github.com/hedge-dev/XenonRecomp.git
				synced 2025-11-04 06:47:09 +00:00 
			
		
		
		
	Change SymbolComparer to not care about symbol size.
This commit is contained in:
		@@ -24,7 +24,7 @@ struct SymbolComparer
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    bool operator()(const Symbol& lhs, size_t rhs) const
 | 
					    bool operator()(const Symbol& lhs, size_t rhs) const
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return rhs > lhs.address + lhs.size;
 | 
					        return lhs.address < rhs;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool operator()(size_t lhs, const Symbol& rhs) const
 | 
					    bool operator()(size_t lhs, const Symbol& rhs) const
 | 
				
			||||||
@@ -34,6 +34,6 @@ struct SymbolComparer
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    bool operator()(const Symbol& lhs, const Symbol& rhs) const
 | 
					    bool operator()(const Symbol& lhs, const Symbol& rhs) const
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return (lhs.address + lhs.size) < rhs.address;
 | 
					        return lhs.address < rhs.address;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user