aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encoding.go
diff options
context:
space:
mode:
Diffstat (limited to 'prog/encoding.go')
-rw-r--r--prog/encoding.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/prog/encoding.go b/prog/encoding.go
index 7c8cf6878..98dee8a8e 100644
--- a/prog/encoding.go
+++ b/prog/encoding.go
@@ -99,6 +99,7 @@ func (ctx *serializer) call(c *Call) {
switch kind := value.Kind(); kind {
case reflect.Int:
ctx.printf(": %d", value.Int())
+ case reflect.Bool:
default:
panic("unable to serialize call prop of type " + kind.String())
}
@@ -376,6 +377,8 @@ func (p *parser) parseCallProps() CallProps {
} else {
value.SetInt(intV)
}
+ case reflect.Bool:
+ value.SetBool(true)
default:
panic("unable to handle call props of type " + kind.String())
}