diff --git a/src/core/org/luaj/vm/LString.java b/src/core/org/luaj/vm/LString.java index 2e9a8644..cb968f08 100644 --- a/src/core/org/luaj/vm/LString.java +++ b/src/core/org/luaj/vm/LString.java @@ -202,7 +202,7 @@ public class LString extends LValue { return 0; while ( i < imax && j < jmax ) { - if ( a[i] != b[i] ) { + if ( a[i] != b[j] ) { return ( ( (int)a[i] ) & 0x0FF ) - ( ( (int)b[j] ) & 0x0FF ); } i++; diff --git a/version.properties b/version.properties index 74dba767..94b40988 100644 --- a/version.properties +++ b/version.properties @@ -1 +1 @@ -version: 0.50 +version: 0.51