diff --git a/gitstatus/gitstatus.plugin.sh b/gitstatus/gitstatus.plugin.sh index bfe16dc2..2d5fdf08 100644 --- a/gitstatus/gitstatus.plugin.sh +++ b/gitstatus/gitstatus.plugin.sh @@ -420,7 +420,7 @@ function gitstatus_query() { VCS_STATUS_COMMIT_SUMMARY="${resp[28]-}" VCS_STATUS_HAS_STAGED=$((VCS_STATUS_NUM_STAGED > 0)) if (( _GITSTATUS_DIRTY_MAX_INDEX_SIZE >= 0 && - VCS_STATUS_INDEX_SIZE > _GITSTATUS_DIRTY_MAX_INDEX_SIZE_ )); then + VCS_STATUS_INDEX_SIZE > _GITSTATUS_DIRTY_MAX_INDEX_SIZE )); then VCS_STATUS_HAS_UNSTAGED=-1 VCS_STATUS_HAS_CONFLICTED=-1 VCS_STATUS_HAS_UNTRACKED=-1 diff --git a/gitstatus/src/arena.h b/gitstatus/src/arena.h index 96873852..822f73be 100644 --- a/gitstatus/src/arena.h +++ b/gitstatus/src/arena.h @@ -151,7 +151,7 @@ class Arena { return DirectInit>>(std::forward(val)); } - // The same as `new T{args...}` but on the arena. + // The same as `new T(args...)` but on the arena. template inline T* DirectInit(Args&&... args) { T* res = Allocate(); @@ -159,7 +159,7 @@ class Arena { return res; } - // The same as `new T(args...)` but on the arena. + // The same as `new T{args...}` but on the arena. template inline T* BraceInit(Args&&... args) { T* res = Allocate(); @@ -194,7 +194,6 @@ class Arena { inline static size_t Align(size_t n, size_t m) { return (n + m - 1) & ~(m - 1); }; void AddBlock(size_t size, size_t alignment); - bool ReuseBlock(size_t size, size_t alignment); __attribute__((noinline)) void* AllocateSlow(size_t size, size_t alignment);