mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
fix splitTokens
This commit is contained in:
parent
99f7786cf8
commit
88b819628f
@ -70,6 +70,9 @@ public class WatParser extends WasmCodeBuilder {
|
||||
case "i32.add":
|
||||
addNumericInstruction( NumericOperator.add, ValueType.i32, javaCodePos );
|
||||
break;
|
||||
case "f32.max":
|
||||
addNumericInstruction( NumericOperator.max, ValueType.f32, javaCodePos );
|
||||
break;
|
||||
case "i64.extend_s/i32":
|
||||
addConvertInstruction( ValueTypeConvertion.i2l, javaCodePos );
|
||||
break;
|
||||
@ -138,7 +141,7 @@ public class WatParser extends WasmCodeBuilder {
|
||||
case '\n':
|
||||
case '\r':
|
||||
case '\t':
|
||||
if( off + 1 < i ) {
|
||||
if( off < i ) {
|
||||
tokens.add( wat.substring( off, i ) );
|
||||
}
|
||||
off = i + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user