From f7ab2d3821e6bccc943f088e308fd58395a186d2 Mon Sep 17 00:00:00 2001 From: David Nusinow Date: Sun, 2 Mar 2008 18:36:25 -0500 Subject: [PATCH] Add missing file from previous commit. --- hw/xfree86/parser/scan.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c index 1f9b1b8de..851b91161 100644 --- a/hw/xfree86/parser/scan.c +++ b/hw/xfree86/parser/scan.c @@ -380,11 +380,20 @@ again: if (c == '0') if ((configBuf[configPos] == 'x') || (configBuf[configPos] == 'X')) + { base = 16; + val.numType = PARSE_HEX; + } else + { base = 8; + val.numType = PARSE_OCTAL; + } else + { base = 10; + val.numType = PARSE_DECIMAL; + } configRBuf[0] = c; i = 1;