Internals: Fix some -Wsuggest-attribute=const suggestions.

This commit is contained in:
Wilson Snyder
2019-05-14 21:46:19 -04:00
parent 8ad1a68420
commit 1fb0af7fba
5 changed files with 9 additions and 12 deletions
+2 -2
View File
@@ -287,8 +287,8 @@ void V3Number::setNames(AstNode* nodep) {
int V3Number::log2b(uint32_t num) {
// See also opCLog2
for (int bit=31; bit>0; bit--) if (num & (VL_ULL(1)<<bit)) return(bit);
return(0);
for (int bit=31; bit>0; bit--) if (num & (VL_ULL(1)<<bit)) return bit;
return 0;
}
//======================================================================