]> git.pld-linux.org Git - packages/fwupdate.git/blobdiff - fwupdate-overflow.patch
- added overflow patch (avoid implicit overflow warning by using explicit cast)
[packages/fwupdate.git] / fwupdate-overflow.patch
diff --git a/fwupdate-overflow.patch b/fwupdate-overflow.patch
new file mode 100644 (file)
index 0000000..060e1c1
--- /dev/null
@@ -0,0 +1,11 @@
+--- fwupdate-8/efi/fwupdate.c.orig     2016-11-15 16:24:00.862246035 +0100
++++ fwupdate-8/efi/fwupdate.c  2016-11-15 16:24:06.562245972 +0100
+@@ -44,7 +44,7 @@
+ #endif
+ #ifndef uintn_mult
+ #define uintn_mult(a, b, c) ({                                        \
+-              const UINTN _limit = ~0ULL;                     \
++              const UINTN _limit = (UINTN)~0ULL;              \
+               int _ret = 1;                                   \
+               if ((a) != 0 && (b) != 0) {                     \
+                       _ret = _limit / (a) < (b);              \
This page took 0.077403 seconds and 4 git commands to generate.