2016-07-15 18:42, Thomas Monjalon:
> 2016-07-15 17:32, Thomas Monjalon:
> > 2016-07-14 17:15, Yong Wang:
> > > -                         void *second_addr = RTE_PTR_ADD(bar_addr, 
> > > memreg[1].offset);
> > > +                         void *second_addr = RTE_PTR_ADD(bar_addr,
> > > +                                                         
> > > memreg[1].offset - reg.offset);
> > 
> > There is an error for 32-bit:
> >     error: cast to pointer from integer of different size
> >     note: in expansion of macro ?RTE_PTR_ADD?
> 
> It can fixed like this:
> -                    memreg[1].offset - reg.offset);
> +                    memreg[1].offset -
> +                    (uintptr_t)reg.offset);
> 

Applied with above change, thanks

Reply via email to