Because the operator '/' has been overloaded in such a way.
Both int and uint are 'promoted' to 'long' to allow '/'. Incase of both
int, there's no need for promotion.
Cheers,
Gaurav
http://gvaish.virtualave.net
--------------------------------
----- Original Message -----
From: "Maurizio Colucci" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 26, 2003 14:00
Subject: Re: [Mono-list] bug found! :-)
> On Tuesday 26 August 2003 05:36, Rohit wrote:
> > thats not a bug!
> > cause
> >
> > 4/3 = 1.3333333333333333333333333333333 != integer.
>
> Then why does this remove the error?
>
> int o = i/(int)u
>
> ?
>
> _______________________________________________
> Mono-list maillist - [EMAIL PROTECTED]
> http://lists.ximian.com/mailman/listinfo/mono-list
>
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list