95b9d8fc3e
2. Add a patch to cast a floating point number before using it to resize buffers, unbreaks the build on NetBSD.
15 lines
427 B
C
15 lines
427 B
C
$NetBSD: patch-libelftc___libelftc.h,v 1.1 2017/05/31 22:14:43 agc Exp $
|
|
|
|
avoid error - cast float value to size_t before using it
|
|
|
|
--- libelftc/_libelftc.h 2017/05/31 22:09:00 1.1
|
|
+++ libelftc/_libelftc.h 2017/05/31 22:09:18
|
|
@@ -55,7 +55,7 @@
|
|
char **container;
|
|
};
|
|
|
|
-#define BUFFER_GROWFACTOR 1.618
|
|
+#define BUFFER_GROWFACTOR (size_t)1.618
|
|
#define VECTOR_DEF_CAPACITY 8
|
|
#define ELFTC_ISDIGIT(C) (isdigit((C) & 0xFF))
|
|
|