~rogpeppe/+junk/mgo-tagged-log-messages

Viewing all changes in revision 247.

  • Committer: Gustavo Niemeyer
  • Author(s): Michael Hudson-Doyle
  • Date: 2013-11-13 13:30:59 UTC
  • mfrom: (246.1.1 mgo)
  • Revision ID: gustavo@niemeyer.net-20131113133059-gxzqegty2xoor066
bson: don't trust expression evaluation order

The evaluation order of

  end := d.i - 4 + int(d.readInt32())

differs when compiled with gccgo vs the gc toolchain, and is
apparently unspecified according to the spec.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: