summaryrefslogtreecommitdiffstats
path: root/src/opt/res/resSim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/opt/res/resSim.c')
-rw-r--r--src/opt/res/resSim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opt/res/resSim.c b/src/opt/res/resSim.c
index d4088e7b..2d77d9af 100644
--- a/src/opt/res/resSim.c
+++ b/src/opt/res/resSim.c
@@ -314,7 +314,7 @@ void Res_SimSetDerivedBytes( Res_Sim_t * p, int fUseWalk )
if ( i == p->nTruePis )
break;
pInfo = (unsigned char *)Vec_PtrEntry( p->vPats, pObj->Id );
- memset( pInfo + nPats, 0, p->nBytesIn - nPats );
+ memset( pInfo + nPats, 0, (size_t)(p->nBytesIn - nPats) );
}
}
/*