diff options
author | rlar <rlar> | 2016-03-16 19:46:14 +0100 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2016-03-18 14:49:23 -0400 |
commit | ed59d3e0664b938f7f4854692349b9d59839fad6 (patch) | |
tree | 58009bb252a6ff222aa7609f3bdda374d724116c /tests/mem_r.l | |
parent | c2429b5a4a6a0e7030c36f75e16ec68923f32cc6 (diff) | |
download | flex-git-ed59d3e0664b938f7f4854692349b9d59839fad6.tar.gz |
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.l | 2 |
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; } |