Skip to content

Commit

Permalink
sdk/bpf/c: fix sol_get_return_data signature (solana-labs#26525)
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl authored Jul 19, 2022
1 parent a6c4136 commit 4163dc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/bpf/c/inc/sol/return_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ static void sol_set_return_data(const uint8_t * arg1, uint64_t arg2) {
* @param result length of return data (may exceed bytes_len if the return data is longer)
*/
#ifndef SOL_SBFV2
uint64_t sol_get_return_data(const uint8_t *, uint64_t, SolPubkey *);
uint64_t sol_get_return_data(uint8_t *, uint64_t, SolPubkey *);
#else
typedef uint64_t(*sol_get_return_data_pointer_type)(const uint8_t *, uint64_t, SolPubkey *);
static uint64_t sol_get_return_data(const uint8_t * arg1, uint64_t arg2, SolPubkey * arg3) {
typedef uint64_t(*sol_get_return_data_pointer_type)(uint8_t *, uint64_t, SolPubkey *);
static uint64_t sol_get_return_data(uint8_t * arg1, uint64_t arg2, SolPubkey * arg3) {
sol_get_return_data_pointer_type sol_get_return_data_pointer = (sol_get_return_data_pointer_type) 1562527204;
return sol_get_return_data_pointer(arg1, arg2, arg3);
}
Expand Down

0 comments on commit 4163dc1

Please sign in to comment.