On 9/25/07, Krzysztof Kowalczyk <[EMAIL PROTECTED]> wrote:
> Reverted. Sorry about that and thanks for noticing and explanation.

Thanks, quick response :)

> I have to say that I still don't get that code. Before making this
> change I wrote a test program (see below) that ran the expression in
> question (a * (int) b / b != a) on every integer and would say if for
> any int a the result is any different than just testing for a < 0.

Try this one:

#include <stdio.h>

int main(int argc, char *argv[])
{
        int a = (1 << 16) + 5, b = (1 << 16) + 17;

        printf("a = %d, b = %d, a * b = %d, a * b / b = %d\n",
               a, b, a * b, a * b / b);

        return 0;
}

cheers,
Kristian
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to