From 2f241ae95b424d1d85f3338acca466e6cbe1227e Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 11 Jun 2003 01:58:21 +0000 Subject: [PATCH] Handle B and b in binary constants. --- lexor.lex | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lexor.lex b/lexor.lex index 206529628..9a500963d 100644 --- a/lexor.lex +++ b/lexor.lex @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: lexor.lex,v 1.79 2003/05/28 04:21:12 steve Exp $" +#ident "$Id: lexor.lex,v 1.80 2003/06/11 01:58:21 steve Exp $" #endif # include "config.h" @@ -364,8 +364,11 @@ static verinum*make_unsized_binary(const char*txt) sign_flag = true; ptr += 1; } + assert(tolower(*ptr) == 'b'); - while (*ptr && ((*ptr == 'b') || (*ptr == ' ') || (*ptr == '\t'))) + ptr += 1; + + while (*ptr && ((*ptr == ' ') || (*ptr == '\t'))) ptr += 1; unsigned size = 0;