about summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2016-01-03 18:57:10 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2016-01-03 18:57:10 +0000
commit524f8026106af96809ab70f8b48b0ee3c80a7098 (patch)
tree1391ee57f41c618dd6434738cc5ba1996db9ec1c /Src/params.c
parent63c6d1746c5bbe67a4f78517b3a0f532d50672f6 (diff)
downloadzsh-524f8026106af96809ab70f8b48b0ee3c80a7098.tar.gz
zsh-524f8026106af96809ab70f8b48b0ee3c80a7098.tar.xz
zsh-524f8026106af96809ab70f8b48b0ee3c80a7098.zip
37489, tweaked: with POSIX_IDENTIFIERS create math var as scalar
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/params.c b/Src/params.c
index 8cab96983..054fb1f54 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -3061,6 +3061,7 @@ setnparam(char *s, mnumber val)
 	if (ss)
 	    *ss = '\0';
 	pm = createparam(t, ss ? PM_ARRAY :
+			 isset(POSIXIDENTIFIERS) ? PM_SCALAR :
 			 (val.type & MN_INTEGER) ? PM_INTEGER : PM_FFLOAT);
 	if (!pm)
 	    pm = (Param) paramtab->getnode(paramtab, t);