summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-09 21:04:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-09 21:04:22 -0700
commit90248a5919960a3bc0ffad65bd22bbdc9d227d5b (patch)
treeaaf606b5bf28a509d102490c5e62f9db44eb49b6 /match.c
parent54d31277dddcd980056c04b83f9d4474842221a3 (diff)
downloadtxr-90248a5919960a3bc0ffad65bd22bbdc9d227d5b.tar.gz
txr-90248a5919960a3bc0ffad65bd22bbdc9d227d5b.tar.bz2
txr-90248a5919960a3bc0ffad65bd22bbdc9d227d5b.zip
C++: don't use int constant as enum initializer.
* match.c (complex_open): Initialize member close of fpip_t using fpip_close enum constant.
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index 5eb8662c..b90d342b 100644
--- a/match.c
+++ b/match.c
@@ -1587,7 +1587,7 @@ typedef struct fpip {
static fpip_t complex_open(val name, val output, val append)
{
- fpip_t ret = { 0, 0, nil, 0 };
+ fpip_t ret = { 0, 0, nil, fpip_fclose };
const wchar_t *namestr = c_str(name);
cnum len = c_num(length_str(name));