]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: avoid %#x of 0
authorRuss Cox <rsc@golang.org>
Thu, 1 Nov 2012 16:55:21 +0000 (12:55 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 1 Nov 2012 16:55:21 +0000 (12:55 -0400)
commite4cef96be6f03aa3e7e4979f1d55f8e66289904b
treeb8e30060629d97bd5b48b60d9d45f1e3bfbe85e5
parentc128474a7ded7d988da9c229e02ff0d639faba5f
cmd/gc: avoid %#x of 0

Plan 9 and Go's lib9/fmt disagree on whether %#x includes the 0x prefix
when printing 0, because ANSI C gave bad advice long ago.

Avoiding that case makes binaries compiled on different systems compatible.

R=ken2
CC=akumar, golang-dev
https://golang.org/cl/6814066
src/cmd/gc/esc.c