From 8e10a919767b450403922217408ed3df12dc95a5 Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Wed, 28 Jan 2015 22:51:25 -0800 Subject: [PATCH] remove GCC error --- include/decaf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/decaf.h b/include/decaf.h index b79097f..f62ea68 100644 --- a/include/decaf.h +++ b/include/decaf.h @@ -46,7 +46,8 @@ typedef struct decaf_scalar_s { static const decaf_bool_t DECAF_TRUE = -(decaf_bool_t)1, DECAF_FALSE = 0; /** NB Success is -1, failure is 0. TODO: see if people would rather the reverse. */ -static const decaf_bool_t DECAF_SUCCESS = DECAF_TRUE, DECAF_FAILURE = DECAF_FALSE; +static const decaf_bool_t DECAF_SUCCESS = -(decaf_bool_t)1 /*DECAF_TRUE*/, + DECAF_FAILURE = 0 /*DECAF_FALSE*/; /** The identity point on the curve. */ const decaf_point_t decaf_identity;