Skip to content

Commit

Permalink
ci: for linux, for release
Browse files Browse the repository at this point in the history
  • Loading branch information
hedzr committed Oct 17, 2021
1 parent 3deea06 commit d33e08e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/simple-wp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,12 @@ void test_undo_pre() {
#if !defined(_MSC_VER)
std::cout << "id: " << id_gen<UndoCmd>{}(UndoCmd{}) << '\n';
std::cout << "id: " << id_name<UndoCmd>() << '\n';
std::cout << "id: " << id_name<RedoCmd>() << '\n';
#else
std::cout << "detail::type_name: " << debug::detail::type_name<UndoCmd>() << '\n';
std::cout << "type_name : " << debug::type_name<UndoCmd>() << '\n';
std::cout << "id_name : " << id_name<UndoCmd>() << '\n';
std::cout << "id_name : " << id_name<RedoCmd>() << '\n';
#endif
dbg_debug("OK, UndoCmd's id = %s", std::string(id_name<UndoCmd>()).c_str());
dbg_debug("OK, RedoCmd's id = %s", std::string(id_name<RedoCmd>()).c_str());
Expand Down
4 changes: 2 additions & 2 deletions include/undo_cxx/undo-zcore.hh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <vector>

#include <limits.h> // SIZE_T_MAX
#if defined(_MSC_VER)
#if !defined(__clang__)
#define SIZE_T_MAX ULONG_MAX
#endif

Expand Down Expand Up @@ -535,7 +535,7 @@ namespace undo_cxx {
it--;
_position = it;

dbg_print(" . restore memento state at position #%d: %s, size=%d", position(), undo_cxx::to_string(*_position).c_str(), size());
dbg_print(" . restore memento state at position #%d: %s, size=%d", position(), undo_cxx::to_string(**_position).c_str(), size());
return true;
}
bool pop_old(MementoPtr &s) {
Expand Down

0 comments on commit d33e08e

Please sign in to comment.