Skip to content

Commit b45bd6e

Browse files
lkotulaAndrzej Religa
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]>
1 parent 9eaf7c9 commit b45bd6e

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)