forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-libs/sord: fixed gcc optimization issue
Closes: https://bugs.gentoo.org/782886 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
dev-libs/sord/files/sord-0.16.8-fix-crash-with-optimized-builds-with-gcc-10.1.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 616517f44ceeacb26592e50e2bf914aad2d93b90 Mon Sep 17 00:00:00 2001 | ||
From: David Robillard <[email protected]> | ||
Date: Fri, 17 Jul 2020 15:38:38 +0200 | ||
Subject: [PATCH] Fix crash with optimized builds with GCC 10.1.0 | ||
|
||
--- | ||
src/zix/btree.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/zix/btree.c b/src/zix/btree.c | ||
index 78a5a0d..d830008 100644 | ||
--- a/src/zix/btree.c | ||
+++ b/src/zix/btree.c | ||
@@ -689,7 +689,7 @@ zix_btree_begin(const ZixBTree* const t) | ||
ZIX_API bool | ||
zix_btree_iter_is_end(const ZixBTreeIter* const i) | ||
{ | ||
- return !i || i->stack[0].node == NULL; | ||
+ return !i || (i->level == 0 && i->stack[0].node == NULL); | ||
} | ||
|
||
ZIX_API void | ||
-- | ||
GitLab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters