summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pre.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pre.l b/src/pre.l
index e123807..f955cc4 100644
--- a/src/pre.l
+++ b/src/pre.l
@@ -3215,7 +3215,8 @@ static void initPredefined(yyscan_t yyscanner,const char *fileName)
{
if (l>0) // see bug375037
{
- argMap.emplace(ds.mid(pi,l),count++);
+ argMap.emplace(ds.mid(pi,l).data(),count);
+ count++;
i=pi+l;
}
else