From 5b4a96fa828ed09fc2b4935d0903185251594f99 Mon Sep 17 00:00:00 2001 From: "David M. Syzdek" Date: Tue, 12 Jul 2022 14:32:17 -0800 Subject: libtinytac: resolving compiler warnings --- lib/libtinytac/lmemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libtinytac/lmemory.c b/lib/libtinytac/lmemory.c index fce6f5c..4fc87ca 100644 --- a/lib/libtinytac/lmemory.c +++ b/lib/libtinytac/lmemory.c @@ -515,7 +515,7 @@ tinytac_set_option( case TTAC_OPT_RANDOM: TinyTacDebug( TTAC_DEBUG_ARGS, " == %s( %s, TTAC_OPT_RANDOM, invalue )", __func__, (((tt)) ? "tt" : "NULL") ); idflt = ((tt)) ? tinytac_dflt.opts : TTAC_DFLT_OPTS; - ival = ((invalue)) ? *((const int *)invalue) : (idflt & TTAC_RND_METHODS); + ival = ((invalue)) ? *((const int *)invalue) : ((int)idflt & (int)TTAC_RND_METHODS); switch(ival) { case TTAC_RAND: TinyTacDebug(TTAC_DEBUG_ARGS, " <= invalue: %s", "TTAC_RAND"); break; case TTAC_RANDOM: TinyTacDebug(TTAC_DEBUG_ARGS, " <= invalue: %s", "TTAC_RANDOM"); break; -- cgit v1.2.3