[C++-sig] Re: new warning using vector_indexing_suite

Andreas Beyer beyer at imb-jena.de
Wed Nov 24 09:54:00 CET 2004


Maybe the fix at
http://mail.python.org/pipermail/c++-sig/2004-September/008107.html
helps.

Andreas

Joel de Guzman wrote:
> Hi,
> 
> I'm sorry about that. I'll definitely look into this. I'm not sure
> if it is the correct fix. I do not have access to my workstation right
> now (working at home), but I'll definitely look into it as soon as I
> get the chance.
> 
> Regards,
> --Joel
> 
> ------------------------------------------------------------------------
>  >
>  > Subject:
>  > new warning using vector_indexing_suite
>  > From:
>  > Jeffrey Holle <jeff.holle at verizon.net>
>  > Date:
>  > Mon, 22 Nov 2004 13:20:44 -0800
>  >
>  >
>  > I use linux with gcc v3.4.3.
>  >
>  > I've discovered that compiling my boost.python using application with
>  > 1.32.0, produces very long winded warnings.
>  >
>  > The problem is comparing signed and unsigned longs in
>  > indexing_suite_detail.hpp.
>  >
>  > I've altered this file to avoid these warning, the diff file is 
> attached.
>  >
>  > I don't know if this change is correct.
>  >
>  > I'd appreciate feedback if deemed not so.
>  >
>  >
>  > ------------------------------------------------------------------------
>  >
>  > 593c593
>  > <                 if (from > max_index) // Clip upper bounds to 
> max_index.
>  > ---
>  >
>  >>                if ((unsigned long)from > max_index) // Clip upper 
> bounds to max_index.
>  >
>  > 615c615
>  > <                 if (to > max_index)
>  > ---
>  >
>  >>                if ((unsigned long)to > max_index)
>  >>
>  >>
>  >>------------------------------------------------------------------------
>  >>


-- 
--------------------------------------
   Dr. Andreas Beyer - beyer at imb-jena.de
   http://www.imb-jena.de/~beyer
--------------------------------------



More information about the Cplusplus-sig mailing list