Skip to content

Commit 520f362

Browse files
committed
remove unsigned from the changed value of modint.val()
1 parent fe9b6fc commit 520f362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atcoder/modint.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct static_modint : internal::static_modint_base {
4848
_v = (unsigned int)(v % umod());
4949
}
5050

51-
unsigned int val() const { return _v; }
51+
int val() const { return _v; }
5252

5353
mint& operator++() {
5454
_v++;
@@ -165,7 +165,7 @@ template <int id> struct dynamic_modint : internal::modint_base {
165165
_v = (unsigned int)(v % mod());
166166
}
167167

168-
unsigned int val() const { return _v; }
168+
int val() const { return _v; }
169169

170170
mint& operator++() {
171171
_v++;

0 commit comments

Comments
 (0)