From cf521a5bd2fe9ba9bc1f7e86109d027e7037c33c Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 30 Oct 2018 23:39:40 -0700 Subject: [PATCH] Fix const --- programs/bpf/c/sdk/inc/sol_bpf.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/bpf/c/sdk/inc/sol_bpf.h b/programs/bpf/c/sdk/inc/sol_bpf.h index 8b174df90c..0b3fb16799 100644 --- a/programs/bpf/c/sdk/inc/sol_bpf.h +++ b/programs/bpf/c/sdk/inc/sol_bpf.h @@ -99,8 +99,8 @@ typedef struct { SolPubkey *key; /** Public Key of the account owner */ int64_t *tokens; /** Numer of tokens owned by this account */ uint64_t userdata_len; /** Length of userdata in bytes */ - const uint8_t *userdata; /** On-chain data owned by this account */ - const SolPubkey *program_id; /** Program that owns this account */ + uint8_t *userdata; /** On-chain data owned by this account */ + SolPubkey *program_id; /** Program that owns this account */ } SolKeyedAccounts; /** @@ -174,7 +174,7 @@ SOL_FN_PREFIX bool sol_deserialize( // account userdata ka[i].userdata_len = *(uint64_t *)input; input += sizeof(uint64_t); - ka[i].userdata = input; + ka[i].userdata = (uint8_t*)input; input += ka[i].userdata_len; // program_id