Ruby: Fix Set::print for 32-bit hosts
This patch fixes a compilation error caused by a length mismatch on 32-bit hosts. The ifdef and sprintf is replaced by a csprintf.
This commit is contained in:
parent
9727b1be18
commit
ca9790a2db
|
@ -352,13 +352,9 @@ Set::print(std::ostream& out) const
|
||||||
}
|
}
|
||||||
|
|
||||||
char buff[24];
|
char buff[24];
|
||||||
out << "[Set (" << m_nSize << ") 0x ";
|
out << "[Set (" << m_nSize << ")";
|
||||||
for (int i = m_nArrayLen - 1; i >= 0; i--) {
|
for (int i = m_nArrayLen - 1; i >= 0; i--) {
|
||||||
#ifdef _LP64
|
csprintf(buff," 0x%08X", m_p_nArray[i]);
|
||||||
sprintf(buff,"0x %016llX ", (long long)m_p_nArray[i]);
|
|
||||||
#else
|
|
||||||
sprintf(buff,"%08X ", m_p_nArray[i]);
|
|
||||||
#endif // __32BITS__
|
|
||||||
out << buff;
|
out << buff;
|
||||||
}
|
}
|
||||||
out << " ]";
|
out << " ]";
|
||||||
|
|
Loading…
Reference in a new issue