src/format.cpp

changeset 137
73d057b030d0
parent 134
eca2fc0acaa2
child 138
a426c1039655
--- a/src/format.cpp	Tue Jul 22 02:52:25 2014 +0300
+++ b/src/format.cpp	Tue Jul 22 04:40:33 2014 +0300
@@ -76,9 +76,11 @@
 			ofs++;
 		}
 
-		if (!isdigit (fmt[pos + ofs]))
+		if (not isdigit (fmt[pos + ofs]))
+		{
 			formatError (fmtstr, "bad format string, expected digit with optional "
 				"modifier after '%%'", pos);
+		}
 
 		int i = fmt[pos + ofs]  - '0';
 
@@ -108,7 +110,7 @@
 //
 void error (const String& msg)
 {
-	Lexer* lx = Lexer::getCurrentLexer();
+	Lexer* lx = Lexer::GetCurrentLexer();
 	String fileinfo;
 
 	if (lx != null and lx->hasValidToken())

mercurial