From 4b3c02dfb2c66565bc78c97fa684b867d21236b3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 6 Apr 2021 04:18:25 +0200 Subject: Fix warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dice.c') diff --git a/dice.c b/dice.c index 3403c59..556b297 100644 --- a/dice.c +++ b/dice.c @@ -89,7 +89,7 @@ parse_dice(const char *s, struct die **dicep, size_t *ndicep) s++; if (num < 1) goto invalid; - die->count = (size_t)num; + die->count = num; if (!isdigit(*s) && *s != '-') goto invalid; errno = 0; -- cgit v1.2.3-70-g09d2