summaryrefslogtreecommitdiffstats
path: root/generic/tkArray.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkArray.h')
-rw-r--r--generic/tkArray.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkArray.h b/generic/tkArray.h
index 65693fe..2bfdd5f 100644
--- a/generic/tkArray.h
+++ b/generic/tkArray.h
@@ -273,7 +273,7 @@ AT##_Resize(AT **arrp, size_t newSize) \
} else { \
int init = *arrp == NULL; \
size_t memSize = AT##_BufferSize(newSize - 1) + sizeof(AT); \
- *arrp = ckrealloc(*arrp, memSize); \
+ *arrp = (AT *)ckrealloc(*arrp, memSize); \
if (init) { \
(*arrp)->size = 0; \
} else if (newSize < (*arrp)->size) { \
@@ -484,7 +484,7 @@ AT##_Resize(AT **arrp, size_t newCapacity) \
} else { \
int init = *arrp == NULL; \
size_t memSize = AT##_BufferSize(newCapacity - 1) + sizeof(AT); \
- *arrp = ckrealloc(*arrp, memSize); \
+ *arrp = (AT *)ckrealloc(*arrp, memSize); \
if (init) { \
(*arrp)->size = 0; \
} else if (newCapacity < (*arrp)->size) { \