Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed a void** cast to just void* to eliminate an apparently bogus

GCC warning about dereferencing a type-punned pointer.
  • Loading branch information...
commit 0f8e4f46a8ca518556ab583ed60cf0e5a3754465 1 parent d2a96b0
@bruceg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 gen_allocdefs.h
View
4 gen_allocdefs.h
@@ -10,7 +10,7 @@ int ta_ready(ta *x,unsigned int n) \
i = x->a; \
if (n > i) { \
x->a = base + n + (n >> 3); \
- if (alloc_re((void**)&x->field,i * sizeof(type),x->a * sizeof(type))) \
+ if (alloc_re((void*)&x->field,i * sizeof(type),x->a * sizeof(type))) \
return 1; \
x->a = i; return 0; } \
return 1; } \
@@ -24,7 +24,7 @@ int ta_rplus(ta *x,unsigned int n) \
i = x->a; n += x->len; \
if (n > i) { \
x->a = base + n + (n >> 3); \
- if (alloc_re((void**)&x->field,i * sizeof(type),x->a * sizeof(type))) \
+ if (alloc_re((void*)&x->field,i * sizeof(type),x->a * sizeof(type))) \
return 1; \
x->a = i; return 0; } \
return 1; } \
Please sign in to comment.
Something went wrong with that request. Please try again.