From 578e905d123d1ae48ad6690cddd5247b83cdccae Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 12 Mar 2026 18:18:06 +0100 Subject: [FEAT] CFAtom & Kernel::Atom improvements, doc TypeAtomic. Signed-off-by: Amlal El Mahrouss --- public/frameworks/CoreFoundation.fwrk/headers/Atom.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'public/frameworks/CoreFoundation.fwrk/headers/Atom.h') diff --git a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h index c58d0600..5abf9824 100644 --- a/public/frameworks/CoreFoundation.fwrk/headers/Atom.h +++ b/public/frameworks/CoreFoundation.fwrk/headers/Atom.h @@ -20,9 +20,8 @@ class CFAtom final { CFAtom(const CFAtom&) = delete; public: - T operator[](SizeT bit) { return (fArrayOfAtoms & (1 << bit)); } - - void operator|(SizeT bit) { fArrayOfAtoms |= (1 << bit); } + const T& operator[](const T& bit) { return (fArrayOfAtoms & (T{1} << bit)); } + void operator|(const T& bit) { fArrayOfAtoms |= (T{1} << bit); } friend Boolean operator==(CFAtom& atomic, const T& idx) { return atomic[idx] == idx; } -- cgit v1.2.3