Commit 48cbefa7d941b8f612d6503e937f4c3f3e4bc8b1
1 parent
5c3c9c8f
Exists in
master
and in
5 other branches
Removendo erros detectados pelo OBS
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
src/libpw3270cpp/remote.cc
@@ -421,7 +421,7 @@ | @@ -421,7 +421,7 @@ | ||
421 | val = this->sequence; | 421 | val = this->sequence; |
422 | while(val > 0) | 422 | while(val > 0) |
423 | { | 423 | { |
424 | - char str[] = { 'a'+(val % 25), 0 }; | 424 | + char str[] = { (char) ('a'+(val % 25)), 0 }; |
425 | name.append(str); | 425 | name.append(str); |
426 | val /= 25; | 426 | val /= 25; |
427 | } | 427 | } |
src/libpw3270cpp/service.cc
@@ -477,12 +477,12 @@ | @@ -477,12 +477,12 @@ | ||
477 | 477 | ||
478 | virtual const char * asc2ebc(unsigned char *str, int sz = -1) | 478 | virtual const char * asc2ebc(unsigned char *str, int sz = -1) |
479 | { | 479 | { |
480 | - return str; | 480 | + return (const char *) str; |
481 | } | 481 | } |
482 | 482 | ||
483 | virtual const char * ebc2asc(unsigned char *str, int sz = -1) | 483 | virtual const char * ebc2asc(unsigned char *str, int sz = -1) |
484 | { | 484 | { |
485 | - return str; | 485 | + return (const char *) str; |
486 | } | 486 | } |
487 | 487 | ||
488 | virtual int set_cursor_position(int row, int col) | 488 | virtual int set_cursor_position(int row, int col) |