mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
remove annoying warning on MSVC 19.37.32822
`register` keyword does exactly nothing: https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/c5033?view=msvc-170
This commit is contained in:
committed by
majcosta
parent
8d49e74df4
commit
b68f206969
@@ -102,7 +102,7 @@ public:
|
||||
return (returnHeap);
|
||||
}
|
||||
|
||||
int moveUp(register int index, KEY newKey)
|
||||
int moveUp(int index, KEY newKey)
|
||||
{
|
||||
while (index > 1) {
|
||||
int current2 = index>>1;//divided by 2
|
||||
@@ -120,7 +120,7 @@ public:
|
||||
|
||||
int moveDown(int index, KEY currentKey)
|
||||
{
|
||||
register int current2 = index+index;
|
||||
int current2 = index+index;
|
||||
while (current2 < heapCount) {
|
||||
if (current2+1 < heapCount) {
|
||||
//choose child to possibly move
|
||||
@@ -314,7 +314,7 @@ insert:
|
||||
|
||||
int findData(const T data) const
|
||||
{
|
||||
register int current;
|
||||
int current;
|
||||
for (current = heapCount-1; current > 0; --current) {
|
||||
if (BinaryHeap[current].data == data) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user