Commit 759f3822 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Cast to 64 bit to silence FlexeLint

parent d0acf119
......@@ -193,7 +193,8 @@ vsl_get(unsigned len, unsigned records, unsigned flushes)
VSC_C_main->shm_writes++;
VSC_C_main->shm_flushes += flushes;
VSC_C_main->shm_records += records;
VSC_C_main->shm_bytes += VSL_BYTES(VSL_OVERHEAD + VSL_WORDS(len));
VSC_C_main->shm_bytes +=
VSL_BYTES(VSL_OVERHEAD + VSL_WORDS((uint64_t)len));
/* Wrap if necessary */
if (VSL_END(vsl_ptr, len) >= vsl_end)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment