I just ran into this myself..and put in a bug report.<div><br></div><div><a href="https://bugzilla.novell.com/show_bug.cgi?id=686433">https://bugzilla.novell.com/show_bug.cgi?id=686433</a></div><div><br></div><div>(0 - x) is being constant-folded to (x) in mono 2.10.1.</div>
<div><br></div><div><br></div><div><br><div class="gmail_quote">On Thu, Mar 24, 2011 at 7:05 PM, David Mitchell <span dir="ltr">&lt;<a href="mailto:dmitchell@logos.com">dmitchell@logos.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="word-wrap:break-word;color:rgb(0, 0, 0);font-size:14px;font-family:Calibri, sans-serif"><div>So I was playing around in my Terminal today, and I did the following:</div><div><br></div><div><div>ws1331:macintosh dmitchell$ /Library/Frameworks/Mono.framework/Versions/Current/bin/mono --version</div>
<div>Mono JIT compiler version 2.10.1 (tarball Fri Feb 25 15:56:49 MST 2011)</div><div>Copyright (C) 2002-2011 Novell, Inc and Contributors. <a href="http://www.mono-project.com" target="_blank">www.mono-project.com</a></div>
<div><span style="white-space:pre-wrap">        </span>TLS:      normal</div><div><span style="white-space:pre-wrap">        </span>SIGSEGV:    normal</div><div><span style="white-space:pre-wrap">        </span>Notification: Thread + polling</div>
<div><span style="white-space:pre-wrap">        </span>Architecture: x86</div><div><span style="white-space:pre-wrap">        </span>Disabled:   none</div><div><span style="white-space:pre-wrap">        </span>Misc:     debugger softdebug</div>
<div><span style="white-space:pre-wrap">        </span>LLVM:     yes(2.9svn-mono)</div><div><span style="white-space:pre-wrap">        </span>GC:      Included Boehm (with typed GC)</div><div>ws1331:macintosh dmitchell$ /Library/Frameworks/Mono.framework/Versions/Current/bin/csharp</div>
<div>csharp  csharp2 </div><div>ws1331:macintosh dmitchell$ /Library/Frameworks/Mono.framework/Versions/Current/bin/csharp2</div><div>Mono C# Shell, type &quot;help;&quot; for help</div><div><br></div><div>Enter statements below.</div>
<div>csharp&gt; double f = -5.0;</div><div>csharp&gt; f = 0 - f;</div><div>csharp&gt; f;</div><div>-5</div><div>csharp&gt; </div></div><div><br></div><div>----</div><div><br></div><div>Does anyone think that this might be something of a problem?</div>
<div><br></div><div>Perhaps one worthy of another point release?</div><div><br></div><div>Thanks,</div><div> Dave</div></div>
<br>_______________________________________________<br>
Mono-devel-list mailing list<br>
<a href="mailto:Mono-devel-list@lists.ximian.com">Mono-devel-list@lists.ximian.com</a><br>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list" target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
<br></blockquote></div><br></div>