Skip to content

Commit c754d01

Browse files
authored
Proper type for __sync_fetch_and_add_1
1 parent 4cb8be2 commit c754d01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/mips/tests/uC-sdk-glue

src/mips/tests/uC-sdk-glue/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static inline void fastLeaveCriticalSection() {
5252
setCop0Status(sr);
5353
}
5454

55-
__attribute__((weak)) int8_t __sync_fetch_and_add_1(int8_t* ptr, int8_t arg) {
55+
__attribute__((weak)) int8_t __sync_fetch_and_add_1(volatile int8_t* ptr, int8_t arg) {
5656
int needsToLeaveCS = fastEnterCriticalSection();
5757
int8_t r = *ptr;
5858
*ptr += arg;

0 commit comments

Comments
 (0)