stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: svn commit: r555970 - /incubator/stdcxx/trunk/tests/src/fmt_bits.cpp
Date Fri, 13 Jul 2007 14:14:41 GMT
faridz@apache.org wrote:
> Author: faridz
> Date: Fri Jul 13 05:31:08 2007
> New Revision: 555970
> 
> URL: http://svn.apache.org/viewvc?view=rev&rev=555970
> Log:
> 2007-07-13 Farid Zaripov <Farid_Zaripov@epam.com>
> 
> 	* fmt_bits.cpp (_rw_fmtlasterror): Cast pmsg to const char* to avoid MSVC error.

Thanks and sorry for the berakage! My bad for not testing
the change. I should know better than that. (I did a build
but forgot to check the result -- not a very useful thing
to do.)

Martin

> 
> Modified:
>     incubator/stdcxx/trunk/tests/src/fmt_bits.cpp
> 
> Modified: incubator/stdcxx/trunk/tests/src/fmt_bits.cpp
> URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/fmt_bits.cpp?view=diff&rev=555970&r1=555969&r2=555970
> ==============================================================================
> --- incubator/stdcxx/trunk/tests/src/fmt_bits.cpp (original)
> +++ incubator/stdcxx/trunk/tests/src/fmt_bits.cpp Fri Jul 13 05:31:08 2007
> @@ -1026,7 +1026,9 @@
>      newspec.width    = 0;
>      newspec.fl_pound = 0;
>  
> -    const int result = _rw_fmtstr (newspec, buf, pmsg, _RWSTD_SIZE_MAX);
> +    const int result = _rw_fmtstr (newspec, buf,
> +                                   _RWSTD_STATIC_CAST (const char*, pmsg),
> +                                   _RWSTD_SIZE_MAX);
>  
>      LocalFree (pmsg);
>  
> 
> 


Mime
View raw message