aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-07-31 21:40:49 +0300
committerArnold D. Robbins <arnold@skeeve.com>2018-07-31 21:40:49 +0300
commitc1f670b26671cc8d60d967bbcb42cb8deb3baf2b (patch)
tree62d128309f36e163d080e54328a2e3983a86e453 /interpret.h
parent86b063b99d78df97fcd761073f437ce00b018712 (diff)
downloadegawk-c1f670b26671cc8d60d967bbcb42cb8deb3baf2b.tar.gz
egawk-c1f670b26671cc8d60d967bbcb42cb8deb3baf2b.tar.bz2
egawk-c1f670b26671cc8d60d967bbcb42cb8deb3baf2b.zip
Fix assigning $0 from a number.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/interpret.h b/interpret.h
index 8408a532..fed0078c 100644
--- a/interpret.h
+++ b/interpret.h
@@ -46,6 +46,7 @@ unfield(NODE **l, NODE **r)
(*l) = dupnode(*r);
DEREF(*r);
}
+ force_string(*l);
}
#define UNFIELD(l, r) unfield(& (l), & (r))