diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-28 21:43:22 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-28 21:43:22 (GMT) |
commit | d91239074b9042988d08093948059096942bdcfc (patch) | |
tree | 1ed2b727bfc898502f7a71236e197a9c2aba1dd4 | |
parent | 279ed42e7b1b8d9d0ae95c67972c7009e504cc92 (diff) |
Fixed a mistake when adding preloaded instructions.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/format/preload.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,5 +1,10 @@ 17-08-28 Cyrille Bagard <nocbos@gmail.com> + * src/format/preload.c: + Fix a mistake when adding preloaded instructions. + +17-08-28 Cyrille Bagard <nocbos@gmail.com> + * src/gtkext/gtkstatusstack.c: Use a GtkStack widget to display the editor status information. diff --git a/src/format/preload.c b/src/format/preload.c index 14bb4b0..552601e 100644 --- a/src/format/preload.c +++ b/src/format/preload.c @@ -309,7 +309,7 @@ bool _g_preload_info_add_instruction(GPreloadInfo *info, GArchInstruction *instr } - result = _g_preload_info_has_instruction_for(info, g_arch_instruction_get_range(instr)); + result = !_g_preload_info_has_instruction_for(info, g_arch_instruction_get_range(instr)); if (result) insert_item_into_flat_array(&info->instructions, &instr, sizeof(GArchInstruction *), |