aboutsummaryrefslogtreecommitdiffhomepage
path: root/tokenizer.cpp
diff options
context:
space:
mode:
authorGravatar Peter Ammon <corydoras@ridiculousfish.com>2012-01-14 22:48:53 -0800
committerGravatar Peter Ammon <corydoras@ridiculousfish.com>2012-01-14 22:48:53 -0800
commit60d1ac4fec07320eed6bfb1c0f4729d57b06f79e (patch)
treeb23bbc9fdb910002b9c877ca69756ab72211326e /tokenizer.cpp
parent9b133a978d5f33985a9b66d3a75165e3d50cdfa3 (diff)
More const and signed correctness. Warnings now fit on one page!
Diffstat (limited to 'tokenizer.cpp')
-rw-r--r--tokenizer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tokenizer.cpp b/tokenizer.cpp
index cea534d4..e311d22e 100644
--- a/tokenizer.cpp
+++ b/tokenizer.cpp
@@ -507,7 +507,7 @@ static int my_iswspace( wchar_t c )
const wchar_t *tok_get_desc( int type )
{
- if( type < 0 || type >= sizeof( tok_desc ) )
+ if( type < 0 || (size_t)type >= sizeof( tok_desc ) )
{
return _(L"Invalid token type");
}