Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix bug in ring_of_integers
Browse files Browse the repository at this point in the history
  • Loading branch information
roed314 authored and GIT_AUTHOR_NAME committed Jun 15, 2017
1 parent 3b2d94a commit f386dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/rings/padics/local_generic.py
Expand Up @@ -335,7 +335,7 @@ def get_unramified_modulus(q, res_name):
kwds['type'] = 'capped-rel'
elif self._prec_type() == 'fixed-mod':
raise TypeError('You must specify the type explicitly')
else:
elif ring.is_field():
ring = ring.ring_of_integers()
# If we are switching to 'digits', or changing p, need to ensure a large enough alphabet.
if 'alphabet' not in kwds and (kwds.get('mode') == 'digits' or
Expand Down

0 comments on commit f386dc6

Please sign in to comment.