blob: a18ffcfd4cb64911082de5cbe18c027415d2822f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
$NetBSD: patch-ef,v 1.1 2009/02/15 10:45:02 spz Exp $
--- src/RtConfig/command.l.orig 2006-06-08 17:16:26.000000000 +0200
+++ src/RtConfig/command.l
@@ -205,8 +205,12 @@ int yywrap () {
}
-<USEFUL_LINE>[Aa][Ss][0-9]+ {
- yylval.as = atoi(yytext+2);
+<USEFUL_LINE>[Aa][Ss]([0-9]+|[0-9]+\.[0-9]+) {
+ const char *dot = strchr(yytext,'.');
+ if (dot)
+ yylval.as = atoi(yytext+2)<<16 | atoi(dot+1);
+ else
+ yylval.as = atoi(yytext+2);
LEXER_RETURN(TKN_ASNUM);
}
|