Commit db4e59bb by Jonathan Wakely Committed by Jonathan Wakely

re PR libstdc++/45999 (runtime error in std::vector python pretty printer.)

2010-11-01  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/45999
	* python/libstdcxx/v6/printers.py (StdVectorPrinter): Replace
	conditional expression with backward-compatible if-else.

From-SVN: r166150
parent fd888d93
2010-11-01 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/45999
* python/libstdcxx/v6/printers.py (StdVectorPrinter): Replace
conditional expression with backward-compatible if-else.
2010-11-01 Jie Zhang <jie@codesourcery.com>
* config/abi/pre/gnu.ver: Export __emutls_v._ZSt11__once_call
......
......@@ -177,7 +177,10 @@ class StdVectorPrinter:
if self.item == self.finish and self.so >= self.fo:
raise StopIteration
elt = self.item.dereference()
obit = 1 if elt & (1 << self.so) else 0
if elt & (1 << self.so):
obit = 1
else:
obit = 0
self.so = self.so + 1
if self.so >= self.isize:
self.item = self.item + 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment