mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -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');
|
out << std::hex << std::setfill('0');
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int col = 0;
|
int col = 0;
|
||||||
unsigned int ch;
|
int ch = in.get();
|
||||||
ch = in.get();
|
|
||||||
while (!in.fail() && ch != EOF) {
|
while (!in.fail() && ch != EOF) {
|
||||||
if (col == 0) {
|
if (col == 0) {
|
||||||
out << "\n ";
|
out << "\n ";
|
||||||
@ -110,7 +109,7 @@ run() {
|
|||||||
} else {
|
} else {
|
||||||
out << ", ";
|
out << ", ";
|
||||||
}
|
}
|
||||||
out << "0x" << std::setw(2) << ch;
|
out << "0x" << std::setw(2) << (unsigned int)ch;
|
||||||
col++;
|
col++;
|
||||||
count++;
|
count++;
|
||||||
ch = in.get();
|
ch = in.get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user