From 959846f0938e836524416f951bf7a8d0c73f5179 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Mon, 13 Oct 2014 22:59:14 +0200 Subject: [PATCH] fix bug in hex numbers --- Rez/RezLexerNextToken.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rez/RezLexerNextToken.cc b/Rez/RezLexerNextToken.cc index da1df02f7f..bffe017cc0 100644 --- a/Rez/RezLexerNextToken.cc +++ b/Rez/RezLexerNextToken.cc @@ -40,7 +40,7 @@ static int readInt(const char *str, const char *end = NULL, int baseOverride = 0 { x *= base; if(*str >= 'a' && *str <= 'z') - x += *str - 'a'; + x += *str - 'a' + 10; else if(*str >= 'A' && *str <= 'Z') x += *str - 'A' + 10; else if(*str >= '0' && *str <= '9')