Skip to content

Commit

Permalink
renepay: fix 32-bit compilation.
Browse files Browse the repository at this point in the history
```
plugins/renepay/mods.c: In function 'payment_continue':
plugins/renepay/mods.c:63:7: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
   63 |       (u64)payment_virtual_program[payment->exec_state++];
      |       ^
```

Signed-off-by: Rusty Russell <[email protected]>
  • Loading branch information
rustyrussell authored and endothermicdev committed May 17, 2024
1 parent e03f56f commit 7040d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/renepay/mods.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct command_result *payment_continue(struct payment *payment)
"Calling payment condition %s", cond->name);

const u64 position_iftrue =
(u64)payment_virtual_program[payment->exec_state++];
(intptr_t)payment_virtual_program[payment->exec_state++];

if (cond->condition_cb(payment))
payment->exec_state = position_iftrue;
Expand Down

0 comments on commit 7040d49

Please sign in to comment.