(uint8_t)
This commit is contained in:
@@ -1461,13 +1461,13 @@ UniValue games_extract(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
|||||||
switch ( sizeof(gamesevent) )
|
switch ( sizeof(gamesevent) )
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
sprintf(&hexstr[i<<1],"%02x",keystrokes[i]);
|
sprintf(&hexstr[i<<1],"%02x",(uint8_t)keystrokes[i]);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
sprintf(&hexstr[i<<2],"%04x",keystrokes[i]);
|
sprintf(&hexstr[i<<2],"%04x",(uint16_t)keystrokes[i]);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
sprintf(&hexstr[i<<3],"%08x",keystrokes[i]);
|
sprintf(&hexstr[i<<3],"%08x",(uint32_t)keystrokes[i]);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
sprintf(&hexstr[i<<4],"%016llxx",(long long)keystrokes[i]);
|
sprintf(&hexstr[i<<4],"%016llxx",(long long)keystrokes[i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user