diff --git a/src/sage/modules/fp_graded/steenrod/profile.py b/src/sage/modules/fp_graded/steenrod/profile.py index 5dd91e1b267..0e30b4b413d 100755 --- a/src/sage/modules/fp_graded/steenrod/profile.py +++ b/src/sage/modules/fp_graded/steenrod/profile.py @@ -79,7 +79,7 @@ def profile_elt(elt, char=2): pass if char == 2: - minprofile = [max(0, n.exact_log(char) + 1) for n in elt] + minprofile = [max(0, ZZ(n).exact_log(char) + 1) for n in elt] return find_min_profile(minprofile, char) # odd primes: