summaryrefslogtreecommitdiff
path: root/tests/mem_r.l
diff options
context:
space:
mode:
authorrlar <rlar>2016-03-16 19:46:14 +0100
committerWill Estes <westes575@gmail.com>2016-03-18 14:49:23 -0400
commited59d3e0664b938f7f4854692349b9d59839fad6 (patch)
tree58009bb252a6ff222aa7609f3bdda374d724116c /tests/mem_r.l
parentc2429b5a4a6a0e7030c36f75e16ec68923f32cc6 (diff)
warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion]
Diffstat (limited to 'tests/mem_r.l')
-rw-r--r--tests/mem_r.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mem_r.l b/tests/mem_r.l
index 7270d38..4b24294 100644
--- a/tests/mem_r.l
+++ b/tests/mem_r.l
@@ -98,7 +98,7 @@ void * yyalloc(yy_size_t n , void* yyscanner)
if( nptrs >= arrsz){
/* increase array size by 1 */
arrsz++;
- ptrs = realloc(ptrs, arrsz * sizeof(struct memsz));
+ ptrs = realloc(ptrs, (size_t) arrsz * sizeof(struct memsz));
ptrs[nptrs].p = 0;
ptrs[nptrs].sz = 0;
}