fix build failure on i686
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
1c7b676a77
commit
4986eb434b
@ -1,14 +1,14 @@
|
||||
From ebbff29622bd7c80415ab52749982918e66fa2be Mon Sep 17 00:00:00 2001
|
||||
From 181edb851ee929ee4628fc8c053eb0c89d869bd0 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Jones <pjones@redhat.com>
|
||||
Date: Thu, 11 Aug 2016 15:46:06 -0400
|
||||
Subject: [PATCH] util.h: add int_add for 32-bit platforms
|
||||
|
||||
---
|
||||
src/util.h | 11 +++++++++++
|
||||
1 file changed, 11 insertions(+)
|
||||
src/util.h | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/src/util.h b/src/util.h
|
||||
index 80f5fab..de972af 100644
|
||||
index 80f5fab..a519ac2 100644
|
||||
--- a/src/util.h
|
||||
+++ b/src/util.h
|
||||
@@ -38,12 +38,23 @@
|
||||
@ -35,6 +35,14 @@ index 80f5fab..de972af 100644
|
||||
#ifndef long_add
|
||||
#define long_add(a, b, c) ({ \
|
||||
const long _limit = LONG_MAX; \
|
||||
@@ -92,6 +103,7 @@
|
||||
#endif
|
||||
|
||||
#define add(a, b, c) _Generic((c), \
|
||||
+ int *: int_add(a,b,c), \
|
||||
long *: long_add(a,b,c), \
|
||||
unsigned long *: ulong_add(a,b,c))
|
||||
|
||||
--
|
||||
2.7.4
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user