aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/hybrid/binary/xdr
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-04-08 09:52:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-04-08 09:52:03 +0200
commit2c4652262c256ec99d1dcbff77038f561fb1b738 (patch)
tree996d15ea6a052144d47647ec775234b4baf5e496 /tests/cxx/hybrid/binary/xdr
parent086b2bc1d5d189152b975e274351927b09a9fd79 (diff)
Get rid of warnings
Diffstat (limited to 'tests/cxx/hybrid/binary/xdr')
-rw-r--r--tests/cxx/hybrid/binary/xdr/driver.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/cxx/hybrid/binary/xdr/driver.cxx b/tests/cxx/hybrid/binary/xdr/driver.cxx
index a8a3010..dc776f2 100644
--- a/tests/cxx/hybrid/binary/xdr/driver.cxx
+++ b/tests/cxx/hybrid/binary/xdr/driver.cxx
@@ -41,9 +41,10 @@ struct underflow_info
};
extern "C" int
-underflow (char* p, char* buf, int n)
+underflow (char* p, char* buf, int n_)
{
underflow_info* ui (reinterpret_cast<underflow_info*> (p));
+ size_t n (static_cast<size_t> (n_));
size_t size (ui->buf->size () - ui->pos);
n = size > n ? n : size;