summaryrefslogtreecommitdiff
path: root/src/TMaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/TMaction.c')
-rw-r--r--src/TMaction.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/TMaction.c b/src/TMaction.c
index d1ca2ca..84ba2a0 100644
--- a/src/TMaction.c
+++ b/src/TMaction.c
@@ -476,11 +476,12 @@ static XtActionProc *EnterBindCache(
bindCache->widgetClass = XtClass(w);
if (_XtGlobalTM.numBindCache == _XtGlobalTM.bindCacheTblSize)
{
- _XtGlobalTM.bindCacheTblSize += 16;
+ _XtGlobalTM.bindCacheTblSize =
+ (TMShortCard)(_XtGlobalTM.bindCacheTblSize + 16);
_XtGlobalTM.bindCacheTbl = (TMBindCache *)
XtRealloc((char *)_XtGlobalTM.bindCacheTbl,
- ((_XtGlobalTM.bindCacheTblSize) *
- sizeof(TMBindCache)));
+ (Cardinal)((_XtGlobalTM.bindCacheTblSize) *
+ sizeof(TMBindCache)));
}
_XtGlobalTM.bindCacheTbl[_XtGlobalTM.numBindCache++] = bindCache;
#endif /* TRACE_TM */