Compare commits

..

No commits in common. "3308262dfbd743b6e1d3956a2b5572f7a049d692" and "58e13d16a50e1d6908e39e20a670896808ccf350" have entirely different histories.

2 changed files with 1 additions and 5 deletions

View File

@ -94,9 +94,7 @@
setopt no_unset extended_glob pipe_fail prompt_percent typeset_silent \
no_prompt_subst no_prompt_bang pushd_silent warn_create_global
autoload -Uz is-at-least
if ! is-at-least 5.1 || [[ $ZSH_VERSION == 5.4.* ]]; then
if [[ $ZSH_VERSION != (5.<1->*|<6->.*) || $ZSH_VERSION == 5.4(|.*) ]]; then
print -ru2 -- "[error] unsupported zsh version: $ZSH_VERSION"
return 1
fi

View File

@ -27,7 +27,6 @@
#include <type_traits>
#include <vector>
#include "check.h"
#include "string_view.h"
namespace gitstatus {
@ -95,7 +94,6 @@ class Arena {
template <class T>
inline T* Allocate(size_t n) {
static_assert(!std::is_reference<T>(), "");
CHECK(n <= SIZE_MAX / sizeof(T)) << n;
return static_cast<T*>(Allocate(n * sizeof(T), alignof(T)));
}