mirror of https://github.com/encounter/objdiff.git
Fix data diffing
This commit is contained in:
parent
20dcc50695
commit
ba74d63a99
|
@ -14,9 +14,7 @@ use crate::{
|
||||||
const BYTES_PER_ROW: usize = 16;
|
const BYTES_PER_ROW: usize = 16;
|
||||||
|
|
||||||
fn find_section<'a>(obj: &'a ObjInfo, selected_symbol: &SymbolReference) -> Option<&'a ObjSection> {
|
fn find_section<'a>(obj: &'a ObjInfo, selected_symbol: &SymbolReference) -> Option<&'a ObjSection> {
|
||||||
obj.sections.iter().find(|section| {
|
obj.sections.iter().find(|section| section.name == selected_symbol.section_name)
|
||||||
section.symbols.iter().any(|symbol| symbol.name == selected_symbol.symbol_name)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn data_row_ui(ui: &mut egui::Ui, address: usize, diffs: &[ObjDataDiff], config: &ViewConfig) {
|
fn data_row_ui(ui: &mut egui::Ui, address: usize, diffs: &[ObjDataDiff], config: &ViewConfig) {
|
||||||
|
|
Loading…
Reference in New Issue