Closed dcoudert closed 11 years ago
You replace
(j<jmax)
by
(j<jmax and jmax>0)
but as jmax
is already larger than j
(which is an unsigned integer) then jmax
is nonzero. And the same goes for the second test you add. If it makes a difference I don't see how O_o
Nathann
Attachment: trac_14351.patch.gz
right, I added too much tests. I have attached the good and simple version.
Reviewer: Nathann Cohen
Ahahaha. If you say that it happens... Looks weird, but it's correct indeed ;-)
Nathann
Merged: sage-5.9.beta2
This patch solves an overflow error caused by the assignment of a negative value to an unsigned int.
CC: @nathanncohen
Component: graph theory
Author: David Coudert
Reviewer: Nathann Cohen
Merged: sage-5.9.beta2
Issue created by migration from https://trac.sagemath.org/ticket/14351