Skip to content

Commit 5bdf0ac

Browse files
lkotulabjornmu
authored andcommitted
Bug#22857652 SOME XPLUGIN TESTS FAILS ON SOLARIS SPARC (32 BITS BUILD)
Description: SPARC has big endianness, which causes wrong interpretation of data when using shorter type in formatter than data pushed on stack. Less significant bits at the end of data. RB: 11989 Reviewed by: Grzegorz Szwarc <[email protected]> Reviewed by: Jakub Nowakowski <[email protected]> Reviewed by: Alfredo Kojima <[email protected]> (cherry picked from commit e8921401d7d75fa2cb9e21cb2f7efdcae3e45341)
1 parent 6794215 commit 5bdf0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rapid/plugin/x/ngs/src/client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Client::Client(Connection_ptr connection, IServer *server, Client_id client_id,
6464
m_close_reason(Not_closing)
6565
{
6666
++num_of_instances;
67-
my_snprintf(m_id, sizeof(m_id), "%ld", client_id);
67+
my_snprintf(m_id, sizeof(m_id), "%llu", static_cast<ulonglong>(client_id));
6868
}
6969

7070

0 commit comments

Comments
 (0)