You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Ben Reser <be...@reser.org> on 2004/01/16 05:57:32 UTC

Why is svn_revnum_t a long int?

a) Is it possible for there to be a negative revision?  If not why not
use an unsigned type?

b) By using a type which is not of a fixed length between platforms
aren't we creating an issue where on platform will support a given
revision number while another's client won't?

I'm think it should be an apr_uint32_t.

-- 
Ben Reser <be...@reser.org>
http://ben.reser.org

"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Why is svn_revnum_t a long int?

Posted by Greg Hudson <gh...@MIT.EDU>.
I agree, it should probably be a fixed type, although it's not the most
important issue in the world.  2^31 revisions is a lot.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Why is svn_revnum_t a long int?

Posted by Ben Reser <be...@reser.org>.
On Thu, Jan 15, 2004 at 09:57:32PM -0800, Ben Reser wrote:
> a) Is it possible for there to be a negative revision?  If not why not
> use an unsigned type?

Never mind on this one.  An invalid revnum is -1.  

> b) By using a type which is not of a fixed length between platforms
> aren't we creating an issue where on platform will support a given
> revision number while another's client won't?
> 
> I'm think it should be an apr_uint32_t.

So shouldn't it be apr_int32_t or apr_int64_t?

-- 
Ben Reser <be...@reser.org>
http://ben.reser.org

"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org