From d851554ebe68abc540a45796767fc016a786b0c0 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 6 Feb 2017 18:16:34 +0100 Subject: [PATCH] MSVC doesn't like to do integer->char conversions. --- src/kernel/race.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel/race.c b/src/kernel/race.c index c57d98a24..c7c2e8165 100644 --- a/src/kernel/race.c +++ b/src/kernel/race.c @@ -94,7 +94,8 @@ enum { RCO_TRADEHERB, }; -static void rc_setoption(race *rc, int key, const char *value) { +static void rc_setoption(race *rc, int k, const char *value) { + unsigned char key = (unsigned char)k; int i; variant *v = NULL; if (!rc->options) {