Turned on all the warnings I could handle and made them into errors then fixed them all. Worldbuilder needs a refactor in random_path.
This commit is contained in:
parent
f3f875ee80
commit
128fc4f540
19 changed files with 85 additions and 85 deletions
|
@ -219,15 +219,15 @@ _match:
|
|||
dbc::check(start[0] != '-', "negative numbers not supported");
|
||||
|
||||
switch(len) {
|
||||
case 10: value += (start[len-10] - '0') * 1000000000;
|
||||
case 9: value += (start[len- 9] - '0') * 100000000;
|
||||
case 8: value += (start[len- 8] - '0') * 10000000;
|
||||
case 7: value += (start[len- 7] - '0') * 1000000;
|
||||
case 6: value += (start[len- 6] - '0') * 100000;
|
||||
case 5: value += (start[len- 5] - '0') * 10000;
|
||||
case 4: value += (start[len- 4] - '0') * 1000;
|
||||
case 3: value += (start[len- 3] - '0') * 100;
|
||||
case 2: value += (start[len- 2] - '0') * 10;
|
||||
case 10: value += (start[len-10] - '0') * 1000000000; [[fallthrough]];
|
||||
case 9: value += (start[len- 9] - '0') * 100000000; [[fallthrough]];
|
||||
case 8: value += (start[len- 8] - '0') * 10000000; [[fallthrough]];
|
||||
case 7: value += (start[len- 7] - '0') * 1000000; [[fallthrough]];
|
||||
case 6: value += (start[len- 6] - '0') * 100000; [[fallthrough]];
|
||||
case 5: value += (start[len- 5] - '0') * 10000; [[fallthrough]];
|
||||
case 4: value += (start[len- 4] - '0') * 1000; [[fallthrough]];
|
||||
case 3: value += (start[len- 3] - '0') * 100; [[fallthrough]];
|
||||
case 2: value += (start[len- 2] - '0') * 10; [[fallthrough]];
|
||||
case 1: value += (start[len- 1] - '0');
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue