diff --git a/src/src/gundo.cc b/src/src/gundo.cc index 94eff43c..096e3e20 100644 --- a/src/src/gundo.cc +++ b/src/src/gundo.cc @@ -50,7 +50,7 @@ void undo_stack::checkpoint(const char *reason, void *snapshot /* = nullptr */) snapshot = this->snapshot_state(); } - struct undo_item item = { reason, snapshot, W->lb.size }; + struct undo_item item = { reason, snapshot, static_cast(W->lb.size) }; this->items.push_back(item); if (this->items.size() > MAX_UNDO_ITEMS) {