Skip to content

Commit 6879a21

Browse files
committed
Fix: gpu::bitset prints bits from left to right (like std::bitser)
1 parent c1bfb58 commit 6879a21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GPU/Utils/GPUCommonBitSet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ template <unsigned int N>
9393
inline std::string bitset<N>::to_string() const
9494
{
9595
std::string retVal;
96-
for (unsigned int i = 0; i < N; i++) {
96+
for (unsigned int i = N; i--;) {
9797
retVal += std::to_string((int)((*this)[i]));
9898
}
9999
return retVal;

0 commit comments

Comments
 (0)