Blame 0002-Fix-invalid-conversion-from-char-to-char.patch

6f1af84
From 938ed16ac7bde2c4a488b90f66081e879248450c Mon Sep 17 00:00:00 2001
6f1af84
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
6f1af84
Date: Fri, 19 Jul 2019 16:09:54 +0100
6f1af84
Subject: [PATCH 2/5] Fix invalid conversion from char to char*
6f1af84
6f1af84
---
6f1af84
 source/syntax.cpp | 2 +-
6f1af84
 1 file changed, 1 insertion(+), 1 deletion(-)
6f1af84
6f1af84
diff --git a/source/syntax.cpp b/source/syntax.cpp
6f1af84
index 020218b..e788037 100755
6f1af84
--- a/source/syntax.cpp
6f1af84
+++ b/source/syntax.cpp
6f1af84
@@ -716,7 +716,7 @@ bool TokenString::isNumberParam(const char *s, long &pFirst, double *result)
6f1af84
 			else return false;
6f1af84
 
6f1af84
 			char  *sind;
6f1af84
-			if ( !( sind = strtok( '\0', "}") ) ) errorMessage( token_index(s), 0, "No closing curly bracket" );  
6f1af84
+			if ( !( sind = strtok( NULL, "}") ) ) errorMessage( token_index(s), 0, "No closing curly bracket" );  
6f1af84
 
6f1af84
 			double dind;
6f1af84
 			if ( !isConst(sind, &dind) )  errorMessage( token_index(s), 0, "Bad array index");  
6f1af84
-- 
6f1af84
2.21.0
6f1af84