Re: signed multiplication for pointer offsets

2017-05-24 Thread Richard Biener
On Sun, May 21, 2017 at 9:45 PM, Marc Glisse wrote: > Hello, > > when we have a double*p, computing p+n, we multiply n by 8 (size of double) > then add it to p. According to the comment just below the modified lines in > the attached patch, the multiplication is supposed to happen in a signed > ty

signed multiplication for pointer offsets

2017-05-21 Thread Marc Glisse
Hello, when we have a double*p, computing p+n, we multiply n by 8 (size of double) then add it to p. According to the comment just below the modified lines in the attached patch, the multiplication is supposed to happen in a signed type. However, that does not match the current code which uses