From 35de01dc19454ffcc92be863a3900a985d3cd044 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 2 Aug 1999 09:47:18 +0000 Subject: [PATCH] [project @ 1999-08-02 09:47:18 by simonmar] oops, 'g' and 'h' aren't hex digits. --- ghc/compiler/parser/Lex.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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# -- 1.7.10.4