ImGuiColorTextEdit icon indicating copy to clipboard operation
ImGuiColorTextEdit copied to clipboard

Double assignment to 'inComment'

Open floooh opened this issue 6 years ago • 1 comments

Just found this because GCC gave me a "sequence point" warning (note how inComment is assigned twice):

https://github.com/BalazsJako/ImGuiColorTextEdit/blob/0a88824f7de8d0bd11d8419066caa7d3469395c4/TextEditor.cpp#L2345

Not sure if this is a simple typo, or whether there should indeed be two variables assigned.

floooh avatar Nov 27 '19 17:11 floooh

This appears to be a typo since inComment is a bool (no operator magic) and the right hand of the first inComment is the other inComment.

VerticalVeith avatar Nov 16 '20 11:11 VerticalVeith