summaryrefslogtreecommitdiff
path: root/src/jscomp.sml
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2010-11-19 17:06:11 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2010-11-19 17:06:11 -0500
commit17707f8419d61ef9c9df14c9693226a1ca5a0526 (patch)
treed54b6c2e162e0af0734d7d2adbf6a93f140606a3 /src/jscomp.sml
parent0d2d940a2932847de8553dae4cae54797c02e157 (diff)
Fix RPC deserialization of channels
Diffstat (limited to 'src/jscomp.sml')
-rw-r--r--src/jscomp.sml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jscomp.sml b/src/jscomp.sml
index 2f7ee5ab..6beb6a32 100644
--- a/src/jscomp.sml
+++ b/src/jscomp.sml
@@ -311,7 +311,7 @@ fun process file =
| TFfi ("Basis", "char") => ("uu(t[i++])", st)
| TFfi ("Basis", "int") => ("parseInt(t[i++])", st)
| TFfi ("Basis", "float") => ("parseFloat(t[i++])", st)
- | TFfi ("Basis", "channel") => ("(t[i++].length > 0 ? parseInt(t[i]) : null)", st)
+ | TFfi ("Basis", "channel") => ("(t[i++].length > 0 ? parseInt(t[i-1]) : null)", st)
| TFfi ("Basis", "bool") => ("t[i++] == \"1\"", st)