Closed noisecode3 closed 2 months ago
Ah yeah, that warning only happens in release builds (LTO enabled). columnCount
returns a size_t
(std::vector::size
) truncated to an int
, but that size_t
itself originates from an int
(Win32's listbox API). In any cases it's a false positive since there are never going to be less than 0 or more than INT_MAX columns.
You have int conversations that can lead to crash, that would be funny if someone hit this.. kind of low priority bug It should have used size_t somewhere. For uint32_t or uint16_t you would need I guess you don't like that.
But a size_t is really a overkill... I guess I can fix this but don't want to right now, lol.
Microsoft documentation..