Skip to content

Commit

Permalink
bugfix for cal code val
Browse files Browse the repository at this point in the history
  • Loading branch information
yang.yang committed May 8, 2018
1 parent 3c1db91 commit a26d320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdf/internal/cmap/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a26d320

Please sign in to comment.