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