RoseKavalier/H3Plugins

A part of conditional expression is always false/true

Closed this issue · 1 comments

_H3API_ BOOL H3DlgEdit::SetCaret(UINT pos)
{
if (pos < 0 || pos == caretPos || pos > text.Length())

_H3API_ PCHAR H3String::At(UINT pos)
{
if (m_string && pos >= 0)

_H3API_ CHAR H3String::GetCharAt(UINT pos) const
{
if (m_string && pos >= 0 && Length())

since UINT is unsigned it is never lower than 0, so this checks is unnecessary and can be removed

Merged here.