Skip to content

Commit

Permalink
setjmp: seems register value needs to be long
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 21, 2024
1 parent c81f7cd commit ce4af3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/setjmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ typedef struct __jmp_buf {
__attribute__((returns_twice,always_inline))
static inline int do_setjmp(minimal_jmp_buf _env)
{
int ret;
long int ret;
asm volatile(
// x9 is the first of the regular temporary registers
// per the above-mentioned Procedule Call Standard document.
Expand Down

0 comments on commit ce4af3b

Please sign in to comment.