mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 07:48:37 -04:00
bin2c: fix compilation warning
This commit is contained in:
parent
4d254177ba
commit
191a5b09e9
@ -99,8 +99,7 @@ run() {
|
||||
out << std::hex << std::setfill('0');
|
||||
int count = 0;
|
||||
int col = 0;
|
||||
unsigned int ch;
|
||||
ch = in.get();
|
||||
int ch = in.get();
|
||||
while (!in.fail() && ch != EOF) {
|
||||
if (col == 0) {
|
||||
out << "\n ";
|
||||
@ -110,7 +109,7 @@ run() {
|
||||
} else {
|
||||
out << ", ";
|
||||
}
|
||||
out << "0x" << std::setw(2) << ch;
|
||||
out << "0x" << std::setw(2) << (unsigned int)ch;
|
||||
col++;
|
||||
count++;
|
||||
ch = in.get();
|
||||
|
Loading…
x
Reference in New Issue
Block a user