[pypy-dev] Re: [pypy-svn] r12855 - pypy/dist/pypy/rpython

Armin Rigo arigo at tunes.org
Sat May 28 13:28:40 CEST 2005


On Sat, May 28, 2005 at 02:16:08AM +0200, Armin Rigo wrote:
> Hi Eric,
> 
> On Sat, May 28, 2005 at 12:25:07AM +0200, ericvrp at codespeak.net wrote:
> > -        v_int1 = receive(Unsigned, arg=0)
> > -        v_int2 = receive(Unsigned, arg=1)
> > +        v_int1 = _receive_may_cast(s_int1, Unsigned, 0)
> > +        v_int2 = _receive_may_cast(s_int2, Unsigned, 1)
> 
> As you just added casts between signed and unsigned in
> convert_from_to(), the _receive_may_cast() helper you define and use in
> this check-in should not be necessary -- indeed, the purpose of the
> original receive() is precisely to detect a mismatch between the actual
> and the requested type of the argument and generate a conversion if
> necessary, by calling convert_from_to().
> 
> 
> Armin
> _______________________________________________
> pypy-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-dev



More information about the Pypy-dev mailing list