We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd10b2 commit 2fe7f9cCopy full SHA for 2fe7f9c
program/src/oracle/oracle.c
@@ -141,7 +141,7 @@ static uint64_t add_product( SolParameters *prm, SolAccountInfo *ka )
141
142
#define PC_ADD_STR \
143
tag = (pc_str_t*)src;\
144
- tag_len = 1UL + (uint64_t)tag->len_;\
+ tag_len = 1 + tag->len_;\
145
if ( &src[tag_len] > end ) return ERROR_INVALID_ARGUMENT;\
146
sol_memcpy( tgt, tag, tag_len );\
147
tgt += tag_len;\
@@ -179,7 +179,7 @@ static uint64_t upd_product( SolParameters *prm, SolAccountInfo *ka )
179
const uint8_t *src = prm->data + sizeof( cmd_upd_product_t );
180
const uint8_t *end = prm->data + prm->data_len;
181
const pc_str_t *tag;
182
- uint64_t tag_len;
+ int tag_len;
183
while( src != end ) {
184
// check key string
185
PC_ADD_STR
0 commit comments