From: simonmar Date: Mon, 2 Aug 1999 09:47:18 +0000 (+0000) Subject: [project @ 1999-08-02 09:47:18 by simonmar] X-Git-Tag: Approximately_9120_patches~5922 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=35de01dc19454ffcc92be863a3900a985d3cd044 [project @ 1999-08-02 09:47:18 by simonmar] oops, 'g' and 'h' aren't hex digits. --- diff --git a/ghc/compiler/parser/Lex.lhs b/ghc/compiler/parser/Lex.lhs index 173b8a0..e1de35a 100644 --- a/ghc/compiler/parser/Lex.lhs +++ b/ghc/compiler/parser/Lex.lhs @@ -703,8 +703,8 @@ readNum cont buf is_digit base conv = read buf 0 is_hexdigit c = is_digit c - || (c `geChar#` 'a'# && c `leChar#` 'h'#) - || (c `geChar#` 'A'# && c `leChar#` 'H'#) + || (c `geChar#` 'a'# && c `leChar#` 'f'#) + || (c `geChar#` 'A'# && c `leChar#` 'F'#) hex c | is_digit c = ord# c -# ord# '0'# | otherwise = ord# (to_lower c) -# ord# 'a'# +# 10#