Author: sebor
Date: Fri Mar 23 16:37:40 2007
New Revision: 521944
URL: http://svn.apache.org/viewvc?view=rev&rev=521944
Log:
2007-03-23 Martin Sebor <[EMAIL PROTECTED]>
* 21.cwctype.cpp (run_test): Explicitly cast the result of wctrans()
to ptrdiff_t in case the function's return type is a pointer as is
the case in GNU glibc.
Modified:
incubator/stdcxx/trunk/tests/strings/21.cwctype.cpp
Modified: incubator/stdcxx/trunk/tests/strings/21.cwctype.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.cwctype.cpp?view=diff&rev=521944&r1=521943&r2=521944
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.cwctype.cpp (original)
+++ incubator/stdcxx/trunk/tests/strings/21.cwctype.cpp Fri Mar 23 16:37:40 2007
@@ -892,7 +892,9 @@
rw_info (0, 0, 0,
"%s::wctrans (const char*) definition", std_name);
- result = std::wctrans ("");
+ // cast wctrans() result to ptrdiff_t in case it's a pointer
+ // such as in GNU glibc
+ result = (int)(_RWSTD_PTRDIFF_T)std::wctrans ("");
rw_assert (-1 != result && !(missing_set & bit_wctrans), 0, __LINE__,
"%s::wctrans (const char*) not defined", std_name);