From 4d6369af06dcb6d8ca652b3fa29a05df764f390b Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 2 Jan 2022 16:32:20 +0200 Subject: [PATCH] remove fwTotal compensation can cause overflows --- src/rtwrap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rtwrap.c b/src/rtwrap.c index df2ebd3c..fb49eec0 100644 --- a/src/rtwrap.c +++ b/src/rtwrap.c @@ -142,7 +142,7 @@ B wm1_c1(Md1D* d, B x) { B f = d->f; WMd1* t = (WMd1*)d->m1; u64 e = nsTime(); t->c1a++; t->c1t+= e-s - fwTotal; - fwTotal = pfwt + e-s + 30; + fwTotal = pfwt + e-s; #endif return r; } @@ -159,7 +159,7 @@ B wm1_c2(Md1D* d, B w, B x) { B f = d->f; WMd1* t = (WMd1*)d->m1; u64 e = nsTime(); t->c2a++; t->c2t+= e-s - fwTotal; - fwTotal = pfwt + e-s + 30; + fwTotal = pfwt + e-s; #endif return r; } @@ -177,7 +177,7 @@ B wm2_c1(Md2D* d, B x) { B f = d->f; B g = d->g; WMd2* t = (WMd2*)d->m2; u64 e = nsTime(); t->c1a++; t->c1t+= e-s - fwTotal; - fwTotal = pfwt + e-s + 30; + fwTotal = pfwt + e-s; #endif return r; } @@ -194,7 +194,7 @@ B wm2_c2(Md2D* d, B w, B x) { B f = d->f; B g = d->g; WMd2* t = (WMd2*)d->m2; u64 e = nsTime(); t->c2a++; t->c2t+= e-s - fwTotal; - fwTotal = pfwt + e-s + 30; + fwTotal = pfwt + e-s; #endif return r; }