Skip to content

bugfix: shift signed 32-bit value by 31 bits should be avoid. - #76

Merged
xiaocang merged 4 commits into
openresty:masterfrom
xiaocang:fix-problem-cppcheck2
Oct 19, 2021
Merged

bugfix: shift signed 32-bit value by 31 bits should be avoid.#76
xiaocang merged 4 commits into
openresty:masterfrom
xiaocang:fix-problem-cppcheck2

Conversation

@xiaocang

@xiaocangxiaocang commented Oct 18, 2021

Copy link
Copy Markdown

[dtoa.c:2453] -> [dtoa.c:2454]: (warning) Shifting signed 32-bit value by 31 bits is undefined behaviour. See condition at line 2453.
[dtoa.c:2846]: (error) Uninitialized variable: bb
[dtoa.c:2847]: (error) Uninitialized variable: bd
[dtoa.c:2848]: (error) Uninitialized variable: bs
[dtoa.c:2850]: (error) Uninitialized variable: delta

@xiaocangxiaocang changed the title bugfix: shift signed 32-bit value by 31 bits shoule be avoid.bugfix: shift signed 32-bit value by 31 bits should be avoid.Oct 19, 2021
@xiaocang
xiaocang merged commit f416d26 into openresty:masterOct 19, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@xiaocang@zhuizhuhaomeng