Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/json: Use unsigned type for bitfield
Enabling -Wsingle-bit-bitfield-constant-conversion compains. repos/apache-mynewt-core/encoding/json/src/json_encode.c:187:27: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] 562 encoder->je_wr_commas = 1; 563 ^ ~ 564 repos/apache-mynewt-core/encoding/json/src/json_encode.c:199:27: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] 565 encoder->je_wr_commas = 1; 566 ^ ~ 567 repos/apache-mynewt-core/encoding/json/src/json_encode.c:233:27: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] 568 encoder->je_wr_commas = 1; 569 ^ ~ 570 repos/apache-mynewt-core/encoding/json/src/json_encode.c:244:27: error: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Werror,-Wsingle-bit-bitfield-constant-conversion] 571 encoder->je_wr_commas = 1; 572 ^ ~
- Loading branch information