diff --git a/Fix-typo-in-GC_malloc_explicitly_typed-comment.patch b/Fix-typo-in-GC_malloc_explicitly_typed-comment.patch new file mode 100644 index 0000000000000000000000000000000000000000..b1d236cf09f52cddfa6f85147d1abe9f8460dabe --- /dev/null +++ b/Fix-typo-in-GC_malloc_explicitly_typed-comment.patch @@ -0,0 +1,28 @@ +From 19521231db2c1ade07f5b2edcd5854d5641a7e8d Mon Sep 17 00:00:00 2001 +From: Ivan Maidanski +Date: Tue, 7 Jun 2022 19:02:06 +0300 +Subject: [PATCH] Fix typo in GC_malloc_explicitly_typed comment (fix of commit + 59372942a) + +* typd_mlc.c (GC_malloc_explicitly_typed): Fix typo (remove duplicate +"the") in comment. +--- + typd_mlc.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/typd_mlc.c b/typd_mlc.c +index 000056e1..cea7fb4e 100644 +--- a/typd_mlc.c ++++ b/typd_mlc.c +@@ -603,7 +603,7 @@ GC_API GC_ATTR_MALLOC void * GC_CALL GC_malloc_explicitly_typed(size_t lb, + op = (word *)GC_malloc_kind(lb, GC_explicit_kind); + if (EXPECT(NULL == op, FALSE)) + return NULL; +- /* It is not safe to use GC_size_map[lb] to compute lg here as the */ ++ /* It is not safe to use GC_size_map[lb] to compute lg here as */ + /* the former might be updated asynchronously. */ + lg = BYTES_TO_GRANULES(GC_size(op)); + op[GRANULES_TO_WORDS(lg) - 1] = d; +-- +2.27.0 + diff --git a/gc.spec b/gc.spec index 38b16d9b8fc264fa9073827f7a86cabc31f32322..486e14a59cfcb07e44def6c193741a25a21fc8db 100644 --- a/gc.spec +++ b/gc.spec @@ -1,11 +1,13 @@ Name: gc Version: 8.0.6 -Release: 1 +Release: 2 Summary: A garbage collector for C and C++ License: BSD and GPLv1+ Url: http://www.hboehm.info/gc/ Source0: http://www.hboehm.info/gc/gc_source/gc-%{version}.tar.gz +Patch0: Fix-typo-in-GC_malloc_explicitly_typed-comment.patch + BuildRequires: gcc gcc-c++ libtool libatomic_ops-devel %description @@ -72,6 +74,12 @@ make check %changelog +* Wed Oct 19 2022 zhangruifang - 8.0.6-2 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:fix typo + * Thu Dec 2 2021 wangjie - 8.0.6-1 - Type:enhancement - ID:NA