Commit 75a8e516 authored by Anbang Wen's avatar Anbang Wen

lib: remove lua dep and fix type conversion warning

parent 5477aa04
......@@ -132,7 +132,7 @@ static inline void array_std_free(void *baton, void *p)
*/
#define array_push_mm(array, val, reserve, baton) \
(int)((array).len < (array).cap ? ((array).at[(array).len] = val, (array).len++) \
: (array_reserve_mm(array, ((array).cap + 1), reserve, baton) < 0 ? -1 \
: (array_reserve_mm(array, ((array).cap + 1), reserve, baton) < 0 ? (size_t)-1 \
: ((array).at[(array).len] = val, (array).len++)))
/**
......
......@@ -25,7 +25,6 @@
#include <gnutls/gnutls.h>
#include <gnutls/crypto.h>
#include <lua.h>
#include <libknot/libknot.h>
#include <libknot/packet/pkt.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment