diff options
author | June McEnroe <june@causal.agency> | 2019-03-24 21:31:32 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-03-24 21:31:32 -0400 |
commit | 3034a0dfd9aa1e687a2619167569bddc37fb5d50 (patch) | |
tree | c0dd917b83cfaaf5ee005b4e90889a8d7131d268 /stack.h | |
parent | Use SDL2_PREFIX as make variable (diff) | |
download | wep-3034a0dfd9aa1e687a2619167569bddc37fb5d50.tar.gz wep-3034a0dfd9aa1e687a2619167569bddc37fb5d50.zip |
Fix gcc sign warnings
Diffstat (limited to '')
-rw-r--r-- | stack.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stack.h b/stack.h index 6267f23..d3a4119 100644 --- a/stack.h +++ b/stack.h @@ -65,7 +65,7 @@ static inline Card stackPop(struct Stack *stack) { return stack->cards[--stack->len]; } -static inline Card stackTop(struct Stack *stack) { +static inline Card stackTop(const struct Stack *stack) { if (!stack->len) return 0; return stack->cards[stack->len - 1]; } |