From ab7f4a10a5967dd4e9c40f9dfa1d657c2120f5ca Mon Sep 17 00:00:00 2001 From: doodspav Date: Tue, 7 May 2024 03:15:37 +0300 Subject: [PATCH] GHI #32 Opsig fetch should return void --- include/patomic/types/ops/explicit.h | 2 +- include/patomic/types/ops/implicit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/patomic/types/ops/explicit.h b/include/patomic/types/ops/explicit.h index 4e5b528f0..131cfb09d 100644 --- a/include/patomic/types/ops/explicit.h +++ b/include/patomic/types/ops/explicit.h @@ -245,7 +245,7 @@ typedef int (* patomic_opsig_test_modify_t) ( * @note * Width of all objects is the same, and is known implicitly. */ -typedef int (* patomic_opsig_fetch_t) ( +typedef void (* patomic_opsig_fetch_t) ( volatile void *obj, const void *arg, int order, diff --git a/include/patomic/types/ops/implicit.h b/include/patomic/types/ops/implicit.h index 8c2bfc4e8..d3a031d61 100644 --- a/include/patomic/types/ops/implicit.h +++ b/include/patomic/types/ops/implicit.h @@ -215,7 +215,7 @@ typedef int (* patomic_opsig_test_modify_t) ( * @note * Width of all objects is the same, and is known implicitly. */ -typedef int (* patomic_opsig_fetch_t) ( +typedef void (* patomic_opsig_fetch_t) ( volatile void *obj, const void *arg, void *ret