Tweak a conditional expression in pearl.c to work around a display bug
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 17 Feb 2012 19:07:31 +0000 (19:07 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 17 Feb 2012 19:07:31 +0000 (19:07 +0000)
commit2711f410eb53e9c632ed3021b41f00120913017b
tree58e3d2983973294fe01cb54e427ee71983efb718
parent2c12137df43a55ee7598f9335fb56b26748386a2
Tweak a conditional expression in pearl.c to work around a display bug
in the Java build - which turns out to be a JVM bug in OpenJDK 6,
causing the NestedVM rendition of the expression (i==1?3:4) to be
mis-JITed. OpenJDK 7 appears not to do that any more, but this
equivalent (for these purposes) rephrasing should perturb the code
just enough to dodge the problem.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@9408 cda61777-01e9-0310-a592-d414129be87e
pearl.c