diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jscomp.sml | 2 |
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) |