mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
cppchecker
This commit is contained in:
parent
20547d773b
commit
0033715a59
2 changed files with 3 additions and 3 deletions
|
@ -488,14 +488,14 @@ static CborError value_to_pretty(CborStreamFunction stream, void *out, CborValue
|
||||||
case CborFloatType:
|
case CborFloatType:
|
||||||
cbor_value_get_float(it, &f);
|
cbor_value_get_float(it, &f);
|
||||||
val = f;
|
val = f;
|
||||||
suffix = flags & CborPrettyNumericEncodingIndicators ? "_2" : "f";
|
suffix = (flags & CborPrettyNumericEncodingIndicators) ? "_2" : "f";
|
||||||
} else if (false) {
|
} else if (false) {
|
||||||
uint16_t f16;
|
uint16_t f16;
|
||||||
case CborHalfFloatType:
|
case CborHalfFloatType:
|
||||||
#ifndef CBOR_NO_HALF_FLOAT_TYPE
|
#ifndef CBOR_NO_HALF_FLOAT_TYPE
|
||||||
cbor_value_get_half_float(it, &f16);
|
cbor_value_get_half_float(it, &f16);
|
||||||
val = decode_half(f16);
|
val = decode_half(f16);
|
||||||
suffix = flags & CborPrettyNumericEncodingIndicators ? "_1" : "f16";
|
suffix = (flags & CborPrettyNumericEncodingIndicators) ? "_1" : "f16";
|
||||||
#else
|
#else
|
||||||
(void)f16;
|
(void)f16;
|
||||||
err = CborErrorUnsupportedType;
|
err = CborErrorUnsupportedType;
|
||||||
|
|
|
@ -146,7 +146,7 @@
|
||||||
* the keys for the metadata clash with existing keys in the JSON map.
|
* the keys for the metadata clash with existing keys in the JSON map.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern FILE *open_memstream(char **bufptr, size_t *sizeptr);
|
extern FILE *open_memstream(char **bufptr, size_t *lenptr);
|
||||||
|
|
||||||
enum ConversionStatusFlags {
|
enum ConversionStatusFlags {
|
||||||
TypeWasNotNative = 0x100, /* anything but strings, boolean, null, arrays and maps */
|
TypeWasNotNative = 0x100, /* anything but strings, boolean, null, arrays and maps */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue