git: 735a7f11b1c5 - main - net-p2p/xbt: fix build on ARM / POWER

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 10 Jan 2023 02:22:25 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=735a7f11b1c53e58d7ab011b274724a84a8e5e15

commit 735a7f11b1c53e58d7ab011b274724a84a8e5e15
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-01-10 00:44:30 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-01-10 02:22:22 +0000

    net-p2p/xbt: fix build on ARM / POWER
    
    Tracker/tracker_input.cpp:6:49: error: constant expression evaluates to -1 which cannot be narrowed to type 'char' [-Wc++11-narrowing]
            std::array<char, 16> res = { 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0 };
                                                           ^~
---
 net-p2p/xbt/files/patch-Tracker_tracker__input.cpp | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/net-p2p/xbt/files/patch-Tracker_tracker__input.cpp b/net-p2p/xbt/files/patch-Tracker_tracker__input.cpp
new file mode 100644
index 000000000000..ba42a11ad1bc
--- /dev/null
+++ b/net-p2p/xbt/files/patch-Tracker_tracker__input.cpp
@@ -0,0 +1,14 @@
+--- Tracker/tracker_input.cpp.orig	2023-01-10 00:32:43 UTC
++++ Tracker/tracker_input.cpp
+@@ -1,9 +1,9 @@
+ #include "stdafx.h"
+ #include "tracker_input.h"
+ 
+-static std::array<char, 16> to_ipv6(uint32_t v)
++static std::array<signed char, 16> to_ipv6(uint32_t v)
+ {
+-	std::array<char, 16> res = { 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0 };
++	std::array<signed char, 16> res = { 0, 0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 0 };
+ 	memcpy(&res[12], &v, 4);
+ 	return res;
+ }