From 080c41d50f9703d89c11a42d267140697282c3a8 Mon Sep 17 00:00:00 2001
From: Kevin Yang <kyang@twitter.com>
Date: Mon, 16 May 2016 14:35:42 -0700
Subject: [PATCH] cc_array - stop doing arithmetic on void *

---
 include/cc_array.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/cc_array.h b/include/cc_array.h
index 4e9dcdbe7..b4aa1feb8 100644
--- a/include/cc_array.h
+++ b/include/cc_array.h
@@ -46,7 +46,7 @@ struct array {
     uint32_t nalloc;    /* # allocated element */
     size_t   size;      /* element size */
     uint32_t nelem;     /* # element */
-    void     *data;     /* elements */
+    uint8_t  *data;     /* elements */
 };
 
 
@@ -93,7 +93,7 @@ array_data_assign(struct array *arr, uint32_t nalloc, size_t size, void *data)
  * element is out of bounds, return -1.
  */
 static inline int
-array_locate(struct array *arr, void *elem) {
+array_locate(struct array *arr, uint8_t *elem) {
     int idx;
 
     idx = (elem - arr->data) / arr->size;