Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Nov 21, 2023
1 parent 27ca03b commit 54a22e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ bool select_device(std::string& name, std::string& SN, std::string& adb)
}
return true;
}
int number = 0;
MaaSize number = 0;
if (!select_device_number(device_size, number)) {
return false;
}
Expand All @@ -239,7 +239,7 @@ bool select_device(std::string& name, std::string& SN, std::string& adb)
return true;
}

bool select_device_number(const MaaSize& device_size, int& number)
bool select_device_number(const MaaSize& device_size, MaaSize& number)
{
std::cout << std::endl << "Please select a device:" << std::endl << std::endl;
std::cout << " 0. Manual" << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion source/cli/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bool default_device_init(DeviceConfig& device);

bool select_device(std::string& name, std::string& SN, std::string& adb);

bool select_device_number(const MaaSize& device_size, int& number);
bool select_device_number(const MaaSize& device_size, MaaSize& number);

void print_device_list(const MaaSize& device_size);

Expand Down

0 comments on commit 54a22e7

Please sign in to comment.