Skip to content

Commit 2107c8f

Browse files
alex-mochterrelln
authored andcommitted
bitstream: fix BIT_readBits and BIT_reloadDStream prototypes
Align the declarations of BIT_readBits() and BIT_reloadDStream() in bitstream.h with their FORCE_INLINE_TEMPLATE definitions. The previous MEM_STATIC declarations caused an attribute mismatch between the header and the definitions, which can lead to incorrect compiler assumptions under certain toolchains and optimization levels. Signed-off-by: Alexander Moch <mail@alexmoch.com>
1 parent bce1ec6 commit 2107c8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/common/bitstream.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ typedef enum { BIT_DStream_unfinished = 0, /* fully refilled */
102102
} BIT_DStream_status; /* result of BIT_reloadDStream() */
103103

104104
MEM_STATIC size_t BIT_initDStream(BIT_DStream_t* bitD, const void* srcBuffer, size_t srcSize);
105-
MEM_STATIC BitContainerType BIT_readBits(BIT_DStream_t* bitD, unsigned nbBits);
106-
MEM_STATIC BIT_DStream_status BIT_reloadDStream(BIT_DStream_t* bitD);
105+
FORCE_INLINE_TEMPLATE BitContainerType BIT_readBits(BIT_DStream_t* bitD, unsigned nbBits);
106+
FORCE_INLINE_TEMPLATE BIT_DStream_status BIT_reloadDStream(BIT_DStream_t* bitD);
107107
MEM_STATIC unsigned BIT_endOfDStream(const BIT_DStream_t* bitD);
108108

109109

0 commit comments

Comments
 (0)