Skip to content

Commit

Permalink
Avoid compile-time warning about always-true comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
eeide committed Jun 25, 2011
1 parent 1fedb0e commit 25075ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type.cpp
Expand Up @@ -1394,7 +1394,7 @@ Type::SizeInBytes(void) const
for (i=0; i<fields.size(); i++) {
unsigned int sz = 0;
if (is_bitfield(i)) {
assert(i >= 0 && i < bitfields_length_.size());
assert(i < bitfields_length_.size());
sz = ceil(bitfields_length_[i] / 8.0) * 8;
} else {
sz = fields[i]->SizeInBytes();
Expand Down

0 comments on commit 25075ea

Please sign in to comment.