Skip to content

Commit

Permalink
Use 0xf instead of 15
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyunhao116 authored and kirillDanshin committed Sep 20, 2019
1 parent 91138ee commit 79bd450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytesconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ func AppendQuotedArg(dst, src []byte) []byte {
case c == ' ':
dst = append(dst, '+')
case quotedArgShouldEscapeTable[int(c)]:
dst = append(dst, '%', upperhex[c>>4], upperhex[c&15])
dst = append(dst, '%', upperhex[c>>4], upperhex[c&0xf])
default:
dst = append(dst, c)
}
Expand Down

0 comments on commit 79bd450

Please sign in to comment.