Author: Armin Rigo <ar...@tunes.org> Branch: stmgc-c7 Changeset: r69899:b333e74ef7d0 Date: 2014-03-12 12:18 +0100 http://bitbucket.org/pypy/pypy/changeset/b333e74ef7d0/
Log: More precision, needed for 938e7328779b diff --git a/rpython/rtyper/llannotation.py b/rpython/rtyper/llannotation.py --- a/rpython/rtyper/llannotation.py +++ b/rpython/rtyper/llannotation.py @@ -6,7 +6,7 @@ from rpython.annotator.model import ( SomeObject, SomeSingleFloat, SomeFloat, SomeLongFloat, SomeChar, SomeUnicodeCodePoint, SomeInteger, SomeString, SomeImpossibleValue, - s_None, s_Bool, UnionError, AnnotatorError) + s_None, s_Bool, UnionError, AnnotatorError, SomeBool) from rpython.rtyper.lltypesystem import lltype, llmemory class SomeAddress(SomeObject): @@ -155,7 +155,10 @@ return ll_to_annotation(v) def bool(self): - return s_Bool + result = SomeBool() + if self.is_constant(): + result.const = bool(self.const) + return result class SomeInteriorPtr(SomePtr): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit