From 9f685c302a52f0801ca2f03fc03db3cae61ad3e9 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 24 Jan 2022 22:33:31 +0100 Subject: refactor: fix compiler warnings --- src/mazerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mazerator.cpp') 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 #include -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 { -- cgit v1.2.3-18-g5258