aitos-io / BoAT-X-Framework

BoAT-X Blockchain Application Framework for IoT
http://www.aitos.io
Apache License 2.0
925 stars 49 forks source link

Compile warning in function CitaSendRawtx. #1250

Open PanHH opened 1 year ago

PanHH commented 1 year ago

Describe the bug Compile warning in function CitaSendRawtx.

boatcita.c: In function 'CitaSendRawtx':
boatcita.c:71:17: warning: pointer targets in passing argument 2 of 'UtilityBinToHex' differ in signedness [-Wpointer-sign]
                 (char*)tx_ptr->rawtx_fields.nonce.field, 16,
                 ^
In file included from /home/john/BoAT-X-Framework/include/boatiotsdk.h:36:0,
                 from /home/john/BoAT-X-Framework/sdk/include/boatinternal.h:37,
                 from boatcita.c:24:
/home/john/BoAT-X-Framework/include/boatutility.h:304:9: note: expected 'const BUINT8 * {aka const unsigned char *}' but argument is of type 'char *'
 BUINT32 UtilityBinToHex(BOAT_OUT BCHAR *to_str,
         ^~~~~~~~~~~~~~~

1667872243105