1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00
This commit is contained in:
gnosygnu
2015-08-03 00:10:03 -04:00
parent 9d63f03b3d
commit 34c34f227c
514 changed files with 4972 additions and 3910 deletions

View File

@@ -51,7 +51,7 @@ class Xofo_lnki_parser extends Obj_ary_parser_base {
private void Exec_val(Xofo_lnki lnki, int fld_idx, int eq_pos, byte[] bry, int fld_bgn, int i) {
int fld_val = -1;
if (fld_idx < 3) {
fld_val = Bry_.Xto_int_or(bry, fld_bgn, i, Int_.MinValue);
fld_val = Bry_.To_int_or(bry, fld_bgn, i, Int_.MinValue);
if (fld_val == Int_.MinValue) throw Err_.new_wo_type("invalid int", "val", String_.new_u8(bry, fld_bgn, i));
switch (fld_idx) {
case 0: lnki.Lnki_type_((byte)fld_val); break;
@@ -62,11 +62,11 @@ class Xofo_lnki_parser extends Obj_ary_parser_base {
}
else {
if (Bry_.Match(bry, fld_bgn, eq_pos, Xop_lnki_arg_parser.Bry_upright)) {
double upright = Bry_.XtoDoubleByPos(bry, eq_pos + 1, i); // +1 to position after eq
double upright = Bry_.To_double(bry, eq_pos + 1, i); // +1 to position after eq
lnki.Lnki_upright_(upright);
}
else if (Bry_.Match(bry, fld_bgn, eq_pos, Xop_lnki_arg_parser.Bry_thumbtime)) {
fld_val = Bry_.Xto_int_or(bry, eq_pos + 1, i, Int_.MinValue); // +1 to position after eq
fld_val = Bry_.To_int_or(bry, eq_pos + 1, i, Int_.MinValue); // +1 to position after eq
if (fld_val == Int_.MinValue) throw Err_.new_wo_type("invalid int", "val", String_.new_u8(bry, eq_pos + 1, i));
lnki.Lnki_thumbtime_(Xof_lnki_time.X_int(fld_val));
}