--- parser3/src/main/compile.y 2005/12/16 14:08:10 1.213.10.7 +++ parser3/src/main/compile.y 2005/12/16 14:09:43 1.217.2.2 @@ -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.213.10.7 2005/12/16 14:08:10 paf Exp $ + $Id: compile.y,v 1.217.2.2 2005/12/16 14:09:43 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