]> Cypherpunks repositories - gostls13.git/commit
asn1: marshal true as 255, not 1.
authorAdam Langley <agl@golang.org>
Sat, 5 Feb 2011 18:55:37 +0000 (13:55 -0500)
committerAdam Langley <agl@golang.org>
Sat, 5 Feb 2011 18:55:37 +0000 (13:55 -0500)
commit566d432f54b4692b20a09317293e80e41d9bd3da
treede23c8777ecd491a232818be18bcdc8251ce2801
parent5626bd9e383f692c4f52049a6a5ba4b7785fa6f9
asn1: marshal true as 255, not 1.

OS X, at least, appears to test |byte == 255|, not |byte != 0| to
establish if a bool is true or false.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4128064
src/pkg/asn1/marshal.go