Based on PR #1875: several size_t values (from strlen(), fread(),
list_t.len, struct addrinfo::ai_addrlen) were implicitly narrowed to
int/unsigned/socklen_t, which triggers MSVC C4267 warnings on x64
Windows builds. Adds explicit casts and widens a few parameter/local
types to size_t where that is the semantically correct type.
Excludes the original PR's mongoose-related mg_send() casts, and
drops two hunks (flex.c, honeywell_cm921.c) that no longer apply
since the affected code was refactored away since 2021.
Co-authored-by: obones <1314739+obones@users.noreply.github.com>
* Add support for wmbus water meter Maddalena
* Add actual water measure
* Add measure of last months
* fix code style
* fix lenght of parsed value
* Add support for mbus units, value types
* Fix json keys
* add storage number to json keys
* reduce bit buffer and add note
* update formatting
* Add initial Elro DB286A support
* Correct line removal
* Declare variables at beginning of block
* Use preprocessor define for constants
* Change 'id' field name to 'code'
* Move check for bitrow length below variable declarations
* Export compare_rows and count_repeats functions
* Use PWM_RAW with appropriate limits to separate messages
Makes it possible to use bitrows directly to check signal,
also to generate hex code instead of binary string
* Correct stray line removal
* Correct file header, add copyright notice
* Move check in front of code generation
Made a prototype for a PWM pulse demodulator. Broke out bit_packet
functions into own file to avoid circular references and for clean up.
Compiles cleanly, but untested.