From: Julian Smart Date: Sun, 8 Feb 2004 20:33:07 +0000 (+0000) Subject: 0 -> 0u to keep gcc happy X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c1b9e143e9bc46d54f4a1ccbbe11251cdf54da65 0 -> 0u to keep gcc happy git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 1ca6596040..554e61d4c4 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -1069,7 +1069,7 @@ void wxGridCellFloatEditor::StartingKey(wxKeyEvent& event) { int keycode = event.GetKeyCode(); if ( wxIsdigit(keycode) || keycode == '+' || keycode == '-' - || keycode == wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT, wxLOCALE_CAT_NUMBER)[0] + || keycode == wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT, wxLOCALE_CAT_NUMBER)[0u] || keycode == WXK_NUMPAD0 || keycode == WXK_NUMPAD1 || keycode == WXK_NUMPAD2 @@ -1172,7 +1172,7 @@ bool wxGridCellFloatEditor::IsAcceptedKey(wxKeyEvent& event) // additionally accept 'e' as in '1e+6', also '-', '+', and '.' if ( (keycode < 128) && (wxIsdigit(keycode) || tolower(keycode) == 'e' || - keycode == wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT, wxLOCALE_CAT_NUMBER)[0] || + keycode == wxLocale::GetInfo(wxLOCALE_DECIMAL_POINT, wxLOCALE_CAT_NUMBER)[0u] || keycode == '+' || keycode == '-') ) return TRUE; }