[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1405517 - in /subversion/trunk/subversion/bindings/javahl/native: CopySources.cpp CreateJ.cpp SVNClient.cpp StringArray.cpp Targets.cpp

From: Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com>
Date: Mon, 5 Nov 2012 13:49:56 +0100

On Sun, Nov 4, 2012 at 3:40 PM, Branko Čibej <brane_at_wandisco.com> wrote:

> On 04.11.2012 12:37, Blair Zajac wrote:
> > On Nov 4, 2012, at 2:14 AM, stefan2_at_apache.org wrote:
> >
> >> Author: stefan2
> >> Date: Sun Nov 4 10:14:56 2012
> >> New Revision: 1405517
> >>
> >> URL: http://svn.apache.org/viewvc?rev=1405517&view=rev
> >> Log:
> >> Silence integer size conversion warnings in JavaHL under Win64 by
> casting
> >> the values explicitly. We assume that argument counts and property
> sizes
> >> are all well below the 2G limit.
> > Hi Stefan,
> >
> > Since you're in C++ here you could switch to using static_cast<> or
> reinterpret_cast<> instead, that would be better for self documentation,
> although that doesn't seem to be the style in the code.
>
> static_cast. *not* reinterpret_cast, which we should never need in
> high-level code.
>

Yes, if APR and JNI would provide a proper C++ interfaces ...

Currently, we need to cast void*->something,
char*->unsigned char* etc. But at least a simple
grep will now find them all.

-- Stefan^2.

-- 
Certified & Supported Apache Subversion Downloads:
*
http://www.wandisco.com/subversion/download
*
Received on 2012-11-05 13:50:28 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.