From bed4be534abb69c0c048c1c3b5169eb988f6723a Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Wed, 28 Mar 2018 19:44:15 +0200 Subject: [PATCH] add cast --- frontends/mxl5xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/mxl5xx.c b/frontends/mxl5xx.c index fdfd682..02cb5db 100644 --- a/frontends/mxl5xx.c +++ b/frontends/mxl5xx.c @@ -686,7 +686,7 @@ static int read_ber(struct dvb_frontend *fe, u32 *ber) p->pre_bit_error.stat[0].uvalue = reg[5]; p->pre_bit_count.len = 1; p->pre_bit_count.stat[0].scale = FE_SCALE_COUNTER; - p->pre_bit_count.stat[0].uvalue = reg[6] * 188 * 8; + p->pre_bit_count.stat[0].uvalue = 8 * 188 * (u64)reg[6]; break; case SYS_DVBS2: break;