summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-10 02:22:49 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-10 02:22:49 +0000
commitd69127d78e723fc46b3050faff6600eb07a948e5 (patch)
treed56a9a25e5df8d1be31db3f891cc24c11b96c6c6
parent9e6dcc292da05781c50822ce2966ac932e5e7438 (diff)
Fix Borland C++ compilation errors/warnings
git-svn-id: https://pugixml.googlecode.com/svn/trunk@1055 99668b35-9821-0410-8761-19e4c4f06640
-rw-r--r--src/pugixml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 58191ae..9e1dec5 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -7366,7 +7366,7 @@ PUGI__NS_BEGIN
PUGI__FN unsigned char* translate_table_generate(xpath_allocator* alloc, const char_t* from, const char_t* to)
{
- unsigned char table[128] = {};
+ unsigned char table[128] = {0};
while (*from)
{
@@ -7377,7 +7377,7 @@ PUGI__NS_BEGIN
return 0;
if (!table[fc])
- table[fc] = tc ? static_cast<unsigned char>(tc) : 128;
+ table[fc] = static_cast<unsigned char>(tc ? tc : 128);
from++;
if (tc) to++;