Merge pull request #6626 from volta-networks/fix_stream_getf

lib: fix STREAM_GETF macro
This commit is contained in:
Quentin Young 2020-06-22 16:47:25 -04:00 committed by GitHub
commit b5f41a0793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -426,7 +426,7 @@ static inline const uint8_t *ptr_get_be32(const uint8_t *ptr, uint32_t *out)
float r; \
uint32_t d; \
} _pval; \
if (stream_getl2((S), &_pval.d)) \
if (!stream_getl2((S), &_pval.d)) \
goto stream_failure; \
(P) = _pval.r; \
} while (0)