--- parser3/src/main/compile.y 2005/12/06 08:19:12 1.217 +++ parser3/src/main/compile.y 2005/12/09 07:18:07 1.218 @@ -5,7 +5,7 @@ Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.y,v 1.217 2005/12/06 08:19:12 paf Exp $ + $Id: compile.y,v 1.218 2005/12/09 07:18:07 paf Exp $ */ /** @@ -758,9 +758,9 @@ default: } // #HH ? if(pc.source[0]=='#' && pc.source[1] && pc.source[2]) { - char c= + char c=(char)( hex_value[(unsigned char)pc.source[1]]*0x10+ - hex_value[(unsigned char)pc.source[2]]; + hex_value[(unsigned char)pc.source[2]]); if(c==0) { result=BAD_HEX_LITERAL; goto break2; // wrong hex value[no ^#00 chars allowed]: bail out