summaryrefslogtreecommitdiff
path: root/devel/elftoolchain/patches/patch-libelftc___libelftc.h
blob: afe7d14d78c61712d044489fa1a61a3850812abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-libelftc___libelftc.h,v 1.2 2018/10/01 12:36:35 ryoon Exp $

avoid error - cast float value to size_t before using it

--- libelftc/_libelftc.h.orig	2015-03-27 17:13:41.000000000 +0000
+++ libelftc/_libelftc.h
@@ -55,7 +55,7 @@ struct vector_str {
 	char		**container;
 };
 
-#define BUFFER_GROWFACTOR	1.618
+#define BUFFER_GROWFACTOR	((size_t)1.618)
 
 #define	ELFTC_FAILURE		0
 #define	ELFTC_ISDIGIT(C) 	(isdigit((C) & 0xFF))