aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/lrexlib.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-03-10 09:32:50 +0100
committerMartin Kaiser <wireshark@kaiser.cx>2014-03-10 08:47:19 +0000
commit3b47668a913b27fb64ebe729273327db72c4ae20 (patch)
tree5386367e0f5a2e3b2bb05bbab28104da57c891e7 /epan/wslua/lrexlib.c
parent09af1401527504e2a5c12c0c87e580feb0111a0a (diff)
add explicit casts to fix compilation on Linux
Change-Id: I3b87e156ab35e14e3c6e3800ee2058b1a6be57d6 Reviewed-on: https://code.wireshark.org/review/577 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/wslua/lrexlib.c')
-rw-r--r--epan/wslua/lrexlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/lrexlib.c b/epan/wslua/lrexlib.c
index 21038fa1e3..4322bb2b25 100644
--- a/epan/wslua/lrexlib.c
+++ b/epan/wslua/lrexlib.c
@@ -126,7 +126,7 @@ void freelist_free (TFreeList *fl) {
enum { ID_NUMBER, ID_STRING };
void buffer_init (TBuffer *buf, size_t sz, lua_State *L, TFreeList *fl) {
- buf->arr = Lmalloc(L, sz);
+ buf->arr = (char *)Lmalloc(L, sz);
if (!buf->arr) {
freelist_free (fl);
luaL_error (L, "malloc failed");