From 669bf386f62e9c3634b34ce871dd22891b823347 Mon Sep 17 00:00:00 2001 From: Jeremy Boynes Date: Mon, 21 Aug 2023 14:45:52 +0100 Subject: [PATCH] Fix volatile errors when compiling for C++23 --- api/RingBuffer.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/RingBuffer.h b/api/RingBuffer.h index 833350d1..8665cf6a 100644 --- a/api/RingBuffer.h +++ b/api/RingBuffer.h @@ -77,7 +77,7 @@ void RingBufferN::store_char( uint8_t c ) { _aucBuffer[_iHead] = c ; _iHead = nextIndex(_iHead); - _numElems++; + _numElems = _numElems + 1; } } @@ -97,7 +97,7 @@ int RingBufferN::read_char() uint8_t value = _aucBuffer[_iTail]; _iTail = nextIndex(_iTail); - _numElems--; + _numElems = _numElems - 1; return value; } @@ -138,4 +138,4 @@ bool RingBufferN::isFull() } #endif /* _RING_BUFFER_ */ -#endif /* __cplusplus */ \ No newline at end of file +#endif /* __cplusplus */ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy