diff options
author | HampusM <hampus@hampusmat.com> | 2022-01-24 22:33:31 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-01-24 22:33:31 +0100 |
commit | 9f685c302a52f0801ca2f03fc03db3cae61ad3e9 (patch) | |
tree | be8fa4549a887afb7ac914944bed630cca397b2c /src/mazerator.cpp | |
parent | b8d9da4884a74008e0c70bc8d907df618fc6d998 (diff) |
refactor: fix compiler warnings
Diffstat (limited to 'src/mazerator.cpp')
-rw-r--r-- | src/mazerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mazerator.cpp b/src/mazerator.cpp index f74f952..a82bbaf 100644 --- a/src/mazerator.cpp +++ b/src/mazerator.cpp @@ -8,7 +8,7 @@ #include <random> #include <string> -void optarg_error(char arg, std::string error) +void optarg_error(int arg, std::string error) { std::cout << "Error: Invalid option argument for -" << arg << ". " << error << std::endl; @@ -33,7 +33,7 @@ void validate_start_coords(unsigned int start_x, unsigned int start_y, unsigned * @param arg The command-line argument character * @param check_zero Whether or not to make sure that the result is not zero */ -void parse_uint_arg(unsigned int *num_dst, char arg, bool check_zero = false) +void parse_uint_arg(unsigned int *num_dst, int arg, bool check_zero = false) { try { |