psi: removed more unnecessary conversions

This commit is contained in:
saxon 2019-01-07 17:00:48 +10:30
parent 83e4a4c5c5
commit 2284d38492
1 changed files with 12 additions and 12 deletions

View File

@ -38,16 +38,16 @@ var (
Tid: 0x00, Tid: 0x00,
Ssi: true, Ssi: true,
Pb: false, Pb: false,
Sl: uint16(0x0d), Sl: 0x0d,
Tss: &TSS{ Tss: &TSS{
Tide: uint16(0x01), Tide: 0x01,
V: 0, V: 0,
Cni: true, Cni: true,
Sn: 0, Sn: 0,
Lsn: 0, Lsn: 0,
Sd: &PAT{ Sd: &PAT{
Pn: uint16(0x01), Pn: 0x01,
Pmpid: uint16(0x1000), Pmpid: 0x1000,
}, },
}, },
} }
@ -57,9 +57,9 @@ var (
Pf: 0x00, Pf: 0x00,
Tid: 0x02, Tid: 0x02,
Ssi: true, Ssi: true,
Sl: uint16(0x12), Sl: 0x12,
Tss: &TSS{ Tss: &TSS{
Tide: uint16(0x01), Tide: 0x01,
V: 0, V: 0,
Cni: true, Cni: true,
Sn: 0, Sn: 0,
@ -81,9 +81,9 @@ var (
Pf: 0x00, Pf: 0x00,
Tid: 0x02, Tid: 0x02,
Ssi: true, Ssi: true,
Sl: uint16(0x3e), Sl: 0x3e,
Tss: &TSS{ Tss: &TSS{
Tide: uint16(0x01), Tide: 0x01,
V: 0, V: 0,
Cni: true, Cni: true,
Sn: 0, Sn: 0,
@ -93,13 +93,13 @@ var (
Pil: pmtTimeLocationPil, Pil: pmtTimeLocationPil,
Pd: []Desc{ Pd: []Desc{
Desc{ Desc{
Dt: byte(timeDescTag), Dt: timeDescTag,
Dl: byte(timeDataSize), Dl: timeDataSize,
Dd: make([]byte, timeDataSize), Dd: make([]byte, timeDataSize),
}, },
Desc{ Desc{
Dt: byte(locationDescTag), Dt: locationDescTag,
Dl: byte(locationDataSize), Dl: locationDataSize,
Dd: make([]byte, locationDataSize), Dd: make([]byte, locationDataSize),
}, },
}, },