summaryrefslogtreecommitdiff
path: root/string/lyndon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'string/lyndon.cpp')
-rw-r--r--string/lyndon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/string/lyndon.cpp b/string/lyndon.cpp
index 6a131a5..858c3db 100644
--- a/string/lyndon.cpp
+++ b/string/lyndon.cpp
@@ -1,5 +1,5 @@
bool next(string& s, int n, char mi = '0', char ma = '1') {
- for (ll i = sz(s), j = sz(s); i < n; i++)
+ for (int i = sz(s), j = sz(s); i < n; i++)
s.push_back(s[i % j]);
while(!s.empty() && s.back() == ma) s.pop_back();
if (s.empty()) {