fix warnings due to commit "add xspice digital model d_lut"

This commit is contained in:
rlar 2016-11-06 12:11:07 +01:00
parent a8f2baad19
commit ae857bf967
1 changed files with 2 additions and 2 deletions

View File

@ -135,12 +135,12 @@ void cm_d_lut(ARGS)
if (INIT) { /* initial pass */
/* allocate storage for the lookup table */
STATIC_VAR (locdata) = calloc(tablelen, sizeof(Digital_State_t));
STATIC_VAR (locdata) = calloc((size_t) tablelen, sizeof(Digital_State_t));
lookup_table = STATIC_VAR (locdata);
/* allocate storage for the outputs */
cm_event_alloc(0, sizeof(Digital_State_t));
cm_event_alloc(1, (size_t) size * sizeof(Digital_State_t));
cm_event_alloc(1, size * (int) sizeof(Digital_State_t));
/* set loading for inputs */
for (i = 0; i < size; i++)