vai_list& vas
)
{
- const int indexSize = sizeof(T) * std::bitset<32>(indexMask).count();
- const int vaSize = sizeof(T) * std::bitset<32>(vaMask).count();
+ const int indexSize = sizeof(T) * std::bitset<32>((int)indexMask).count();
+ const int vaSize = sizeof(T) * std::bitset<32>((int)vaMask).count();
const int count = bytes / (indexSize + vaSize);
// fix endian-ness of the whole lot, if required
const vai_list& vas )
{
unsigned int count = vertices.size();
- const int indexSize = sizeof(T) * std::bitset<32>(indexMask).count();
- const int vaSize = sizeof(T) * std::bitset<32>(vaMask).count();
+ const int indexSize = sizeof(T) * std::bitset<32>((int)indexMask).count();
+ const int vaSize = sizeof(T) * std::bitset<32>((int)vaMask).count();
sgWriteUInt(fp, (indexSize + vaSize) * count);
for (unsigned int i=0; i < count; ++i) {
throw sg_exception("Error reading object properties");
}
- size_t indexCount = std::bitset<32>(idx_mask).count();
+ size_t indexCount = std::bitset<32>((int)idx_mask).count();
if (indexCount == 0) {
throw sg_exception("object index mask has no bits set");
}