From: Dale Weiler Date: Mon, 17 Mar 2014 14:23:13 +0000 (-0400) Subject: Remove the qcint cast. X-Git-Tag: xonotic-v0.8.0~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=827826b9f956605193cbbb4ff5d94a7969d38bfb;p=xonotic%2Fgmqcc.git Remove the qcint cast. --- diff --git a/fold.c b/fold.c index 14665f2..a7a0be7 100644 --- a/fold.c +++ b/fold.c @@ -550,13 +550,13 @@ static GMQCC_INLINE ast_expression *fold_op_xor(fold_t *fold, ast_value *a, ast_ static GMQCC_INLINE ast_expression *fold_op_lshift(fold_t *fold, ast_value *a, ast_value *b) { if (fold_can_2(a, b) && isfloats(a, b)) - return fold_constgen_float(fold, (qcfloat_t)(((qcuint_t)(floorf(fold_immvalue_float(a) * powf(2.0f, fold_immvalue_float(b))))))); + return fold_constgen_float(fold, (qcfloat_t)((floorf(fold_immvalue_float(a) * powf(2.0f, fold_immvalue_float(b)))))); return NULL; } static GMQCC_INLINE ast_expression *fold_op_rshift(fold_t *fold, ast_value *a, ast_value *b) { if (fold_can_2(a, b) && isfloats(a, b)) - return fold_constgen_float(fold, (qcfloat_t)(((qcuint_t)(floorf(fold_immvalue_float(a) / powf(2.0f, fold_immvalue_float(b))))))); + return fold_constgen_float(fold, (qcfloat_t)((floorf(fold_immvalue_float(a) / powf(2.0f, fold_immvalue_float(b)))))); return NULL; }