diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-08-31 09:07:33 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-08-31 09:07:33 +0100 |
| commit | 97e36233fbb87c46372483eb9e0b8f7a65670792 (patch) | |
| tree | 43b5e4cee18988a2bd084976d9bfd2bac327c9ae /src/normal.cc | |
| parent | 80298a95a064baac0d7fe68a2857fb41ac1a0a6e (diff) | |
Remove the to_string(unsigned) (it conflicts with to_string(size_t) on x86)
Just cast to int when we pass an unsigned.
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc index 00250c2c..3d1d05ce 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -716,7 +716,7 @@ void select_regex(Context& context, NormalParams params) { const char reg = to_lower(params.reg ? params.reg : '/'); unsigned capture = (unsigned)params.count; - auto prompt = capture ? format("select (capture {}):", capture) : "select:"_str; + auto prompt = capture ? format("select (capture {}):", (int)capture) : "select:"_str; regex_prompt(context, std::move(prompt), [reg, capture](Regex ex, PromptEvent event, Context& context) { if (ex.empty()) @@ -732,7 +732,7 @@ void split_regex(Context& context, NormalParams params) { const char reg = to_lower(params.reg ? params.reg : '/'); unsigned capture = (unsigned)params.count; - auto prompt = capture ? format("split (on capture {}):", capture) : "split:"_str; + auto prompt = capture ? format("split (on capture {}):", (int)capture) : "split:"_str; regex_prompt(context, std::move(prompt), [reg, capture](Regex ex, PromptEvent event, Context& context) { if (ex.empty()) |
