fix typo
This commit is contained in:
parent
9218dcf4b4
commit
d187bb782f
28
Fix-typo-in-GC_malloc_explicitly_typed-comment.patch
Normal file
28
Fix-typo-in-GC_malloc_explicitly_typed-comment.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
From 19521231db2c1ade07f5b2edcd5854d5641a7e8d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Ivan Maidanski <ivmai@mail.ru>
|
||||||
|
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
|
||||||
|
|
||||||
10
gc.spec
10
gc.spec
@ -1,11 +1,13 @@
|
|||||||
Name: gc
|
Name: gc
|
||||||
Version: 8.0.6
|
Version: 8.0.6
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A garbage collector for C and C++
|
Summary: A garbage collector for C and C++
|
||||||
License: BSD and GPLv1+
|
License: BSD and GPLv1+
|
||||||
Url: http://www.hboehm.info/gc/
|
Url: http://www.hboehm.info/gc/
|
||||||
Source0: http://www.hboehm.info/gc/gc_source/gc-%{version}.tar.gz
|
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
|
BuildRequires: gcc gcc-c++ libtool libatomic_ops-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -72,6 +74,12 @@ make check
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 19 2022 zhangruifang <zhangruifang1@h-partners.com> - 8.0.6-2
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix typo
|
||||||
|
|
||||||
* Thu Dec 2 2021 wangjie <wangjie375@huawei.com> - 8.0.6-1
|
* Thu Dec 2 2021 wangjie <wangjie375@huawei.com> - 8.0.6-1
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user