Skip to content

Commit

Permalink
Fix a potential int/char error. Version 1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-mironov committed Feb 2, 2021
1 parent ac877d9 commit 1f03dc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT( XKB-SWITCH )
SET(MAJOR_VERSION 1)
SET(MINOR_VERSION 8)
SET(RELEASE_VERSION 4)
SET(RELEASE_VERSION 5)
SET(XKBSWITCH_VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${RELEASE_VERSION})
ADD_DEFINITIONS(-DXKBSWITCH_VERSION="${XKBSWITCH_VERSION}")

Expand Down
6 changes: 3 additions & 3 deletions src/XKbSwitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main( int argc, char* argv[] )
int m_print = 0;
int m_next = 0;
int m_list = 0;
char opt;
int opt;
int option_index = 0;
string newgrp;

Expand Down Expand Up @@ -126,10 +126,10 @@ int main( int argc, char* argv[] )
verbose++;
break;
case '?':
THROW_MSG(verbose, "Invalid argument. Check --help.");
THROW_MSG(verbose, "Invalid arguments. Check --help.");
break;
default:
THROW_MSG(verbose, "Invalid argument: '" << opt << "'. Check --help.");
THROW_MSG(verbose, "Invalid argument: '" << (char)opt << "'. Check --help.");
break;
}
}
Expand Down

0 comments on commit 1f03dc9

Please sign in to comment.