mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-01 22:17:29 +08:00
bugfix for cal code val
This commit is contained in:
parent
3c1db91380
commit
a26d320c7b
@ -23,8 +23,8 @@ func hexToString(shex cmapHexString) string {
|
||||
|
||||
// Assumes unicode in format <HHLL> with 2 bytes HH and LL representing a rune.
|
||||
for i := 0; i < len(shex.b)-1; i += 2 {
|
||||
b1 := shex.b[i]
|
||||
b2 := shex.b[i+1]
|
||||
b1 := uint64(shex.b[i])
|
||||
b2 := uint64(shex.b[i+1])
|
||||
r := rune((b1 << 8) | b2)
|
||||
|
||||
buf.WriteRune(r)
|
||||
|
Loading…
x
Reference in New Issue
Block a user