From 6badd747901b195878c12e9dc787b0a5ce86c72f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 9 Jan 2020 20:12:52 +1100 Subject: Fix compilation on 32bit platforms Fixes #3284 --- src/buffer_utils.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/buffer_utils.cc') diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index 67bd97fe..8c0f3f80 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -219,10 +219,12 @@ void write_to_debug_buffer(StringView str) } } -InplaceString<23> to_string(Buffer::HistoryId id) + +auto to_string(Buffer::HistoryId id) { + using Result = decltype(to_string(size_t{})); if (id == Buffer::HistoryId::Invalid) - return InplaceString<23>{1, "-"}; + return Result{1, "-"}; return to_string(static_cast(id)); } -- cgit v1.2.3