aboutsummaryrefslogtreecommitdiff
path: root/system/lib
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-02-01 17:18:25 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:23:53 +0300
commit848c186df3a8f1eff6e7b1af0b08df25aefae0e3 (patch)
treee4a70fc4c50022a6398170ff8d93da62e160b85b /system/lib
parent70aebcde9e97a9befdb7b912d0a3c1f3b5b9a003 (diff)
Fix cxa_demangle compile errors
Diffstat (limited to 'system/lib')
-rw-r--r--system/lib/libcxxabi/src/cxa_demangle.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/system/lib/libcxxabi/src/cxa_demangle.cpp b/system/lib/libcxxabi/src/cxa_demangle.cpp
index c1e12603..804ea7ce 100644
--- a/system/lib/libcxxabi/src/cxa_demangle.cpp
+++ b/system/lib/libcxxabi/src/cxa_demangle.cpp
@@ -5695,7 +5695,7 @@ public:
if (__right_ != 0)
r += __right_->size();
else if (__size_ != 0)
- r += static_cast<size_t>(snprintf(0, 0, "%ld", __size_));
+ r += static_cast<size_t>(snprintf(0, 0, "%lu", static_cast<unsigned long>(__size_)));
const_cast<long&>(__cached_size_) = static_cast<long>(r);
}
return static_cast<size_t>(__cached_size_);
@@ -5710,7 +5710,7 @@ public:
buf = __right_->get_demangled_name(buf);
else if (__size_ != 0)
{
- int rs = sprintf(buf, "%ld", __size_);
+ int rs = sprintf(buf, "%lu", static_cast<unsigned long>(__size_));
buf += rs;
}
*buf++ = ']';
@@ -5735,7 +5735,7 @@ public:
if (__right_ != 0)
r += __right_->size();
else if (__size_ != 0)
- r += static_cast<size_t>(snprintf(0, 0, "%ld", __size_));
+ r += static_cast<size_t>(snprintf(0, 0, "%lu", static_cast<unsigned long>(__size_)));
return r;
}
@@ -5747,7 +5747,7 @@ public:
buf = __right_->get_demangled_name(buf);
else if (__size_ != 0)
{
- int off = sprintf(buf, "%ld", __size_);
+ int off = sprintf(buf, "%lu", static_cast<unsigned long>(__size_));
buf += off;
}
char* t = buf;