Skip to content

Commit 2fe7f9c

Browse files
committed
len param to sol_memcpy is int
1 parent bbd10b2 commit 2fe7f9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

program/src/oracle/oracle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static uint64_t add_product( SolParameters *prm, SolAccountInfo *ka )
141141

142142
#define PC_ADD_STR \
143143
tag = (pc_str_t*)src;\
144-
tag_len = 1UL + (uint64_t)tag->len_;\
144+
tag_len = 1 + tag->len_;\
145145
if ( &src[tag_len] > end ) return ERROR_INVALID_ARGUMENT;\
146146
sol_memcpy( tgt, tag, tag_len );\
147147
tgt += tag_len;\
@@ -179,7 +179,7 @@ static uint64_t upd_product( SolParameters *prm, SolAccountInfo *ka )
179179
const uint8_t *src = prm->data + sizeof( cmd_upd_product_t );
180180
const uint8_t *end = prm->data + prm->data_len;
181181
const pc_str_t *tag;
182-
uint64_t tag_len;
182+
int tag_len;
183183
while( src != end ) {
184184
// check key string
185185
PC_ADD_STR

0 commit comments

Comments
 (0)