Skip to content

Commit

Permalink
Fix type casting (#200)
Browse files Browse the repository at this point in the history
* Casting char to an int for comparison
* Converting 'letter' to int

Fixes #162.

Refer-to: processManager.cpp:70: simple file handling error · Issue #162 · slacka/WoeUSB <https://github.com/slacka/WoeUSB/issues/162>
Signed-off-by: 林博仁(Buo-ren, Lin) <[email protected]>
  • Loading branch information
Skrilltrax authored and brlin-tw committed Sep 15, 2018
1 parent 6aba2a8 commit 8e45fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int PipeManager::Close()
bool PipeManager::GetLine(std::string &line)
{
line = "";
char letter = '\0';
int letter = '\0';

while(not feof(m_pipe))
{
Expand Down

0 comments on commit 8e45fba

Please sign in to comment.