• Russ Cox's avatar
    cmd/gc: avoid %#x of 0 · e4cef96b
    Russ Cox authored
    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
    e4cef96b
esc.c 27.3 KB