Fixed test.cpp to execute completely instead of returning early. Fixed some VC8 /W4 warnings.
git-svn-id: http://svn.code.sf.net/p/utfcpp/code@29 a809a056-fc17-0410-9590-b4f493f8b08e
This commit is contained in:
parent
d3640c792b
commit
347505ea0d
3 changed files with 2 additions and 8 deletions
|
@ -22,7 +22,7 @@ int main()
|
|||
char byte;
|
||||
while (!fs8.eof()) {
|
||||
string line;
|
||||
while ((byte = fs8.get()) != '\n' && !fs8.eof())
|
||||
while ((byte = static_cast<char>(fs8.get())) != '\n' && !fs8.eof())
|
||||
line.push_back(byte);
|
||||
|
||||
line_count++;
|
||||
|
|
|
@ -10,7 +10,7 @@ void id_1528544()
|
|||
unsigned int cp_u10ffff = next (uit, u10ffff + 4);
|
||||
check (cp_u10ffff == 0x10ffff);
|
||||
}
|
||||
catch (std::exception& ex) {
|
||||
catch (std::exception&) {
|
||||
check (false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,12 +8,6 @@ using namespace std;
|
|||
|
||||
int main()
|
||||
{
|
||||
unsigned char u10ffff[] = {0xf4, 0x8f, 0xbf, 0xbf};
|
||||
unsigned char* uit = u10ffff;
|
||||
unsigned int cp_u10ffff = next (uit, u10ffff + 4);
|
||||
assert (cp_u10ffff == 0x10ffff);
|
||||
return 0;
|
||||
|
||||
//append
|
||||
unsigned char u[5] = {0,0,0,0,0};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue