[Mono-list] The operation overflows at compile time in checked mode

Paolo Molaro lupus at ximian.com
Mon Aug 8 10:51:51 EDT 2005


On 08/08/05 red forks wrote:
> const long lk = 1024;
> const long lM = 1024 * lk;
> const long lG = 1024 * lM;
> const long lT = 1024 * lG;
> 
> I think 1024G is not out of range of long, don't know why mcs think its an 
> error.

What version of mono are you using? It seems to work fine here.
Also, see bugzilla.ximian.com for filing bug reports.
Thanks.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-list mailing list