summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-02-14 00:44:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-02-14 00:44:15 (GMT)
commitcf0d30509224a887ecb9bf371a76eb070d3f2eb3 (patch)
treedce6c6cbb52e008b73d0387f7bdd76b782e3a04d /src
parent4ff5e12f57a4c54e19a7ba987d243e5f86341aeb (diff)
Fixed a bug when registering a group of symbols.
Diffstat (limited to 'src')
-rw-r--r--src/format/format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format/format.c b/src/format/format.c
index 5a1cca9..6968dcc 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -949,7 +949,7 @@ bool g_binary_format_add_symbols(GBinFormat *format, GBinSymbol **symbols, size_
* construction du symbole dans les cas peu fréquents où le symbole était déjà en place.
*/
- result = bsearch_index(symbols[0], format->symbols, format->sym_count,
+ result = bsearch_index(&symbols[0], format->symbols, format->sym_count,
sizeof(GBinSymbol *), (__compar_fn_t)g_binary_symbol_cmp, &index);
if (!result)