Skip to content

Commit

Permalink
audio/mumble-server: fix build on i386
Browse files Browse the repository at this point in the history
/wrkdirs/usr/ports/audio/mumble-server/work/mumble-1.5.613/src/murmur/Server.cpp:1044:21:
error: implicit conversion changes signedness: 'int' to 'std::vector<char>::size_type'
(aka 'unsigned int') [-Werror,-Wsign-conversion]
                bufVec.resize(len + 4);
                       ~~~~~~ ~~~~^~~
1 error generated.

Upstream issue: mumble-voip/mumble#6377

Reported by:	pkg-fallout
Approved by:	arrowd (mentor, implicit)
MFH:		2024Q2
  • Loading branch information
VVD committed Apr 10, 2024
1 parent 94c5778 commit f0a4c1f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions audio/mumble-server/files/patch-src_murmur_Server.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/murmur/Server.cpp.orig 2024-03-03 17:26:27 UTC
+++ src/murmur/Server.cpp
@@ -1041,7 +1041,7 @@ void Server::sendMessage(ServerUser &u, const unsigned
((reinterpret_cast< quint64 >(ebuffer.data()) + 8) & static_cast< quint64 >(~7)) + 4);
#else
std::vector< char > bufVec;
- bufVec.resize(len + 4);
+ bufVec.resize(static_cast< std::size_t >(len + 4));
char *buffer = bufVec.data();
#endif
{

0 comments on commit f0a4c1f

Please sign in to comment.