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

Re: apr_off_t is of an ambiguous size.

From: Kean Johnston <jkj_at_sco.com>
Date: 2004-01-17 02:53:11 CET

> Here we go again... and with this I'm stopping for the day. It's
> Friday.
Beforfe you stop consider one small change please :)

> const apr_off_t min = (apr_off_t) 1 << ((sizeof (apr_off_t)*8)-1);
> const apr_off_t max = ~min;
Dont use the names min and max. They are all-too-frequently defined to
be macros that will cause syntax errors when that file is compiled.

Kean

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jan 17 02:54:58 2004

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