[Mono-bugs] [Bug 80384][Nor] Changed - System.Decimal Ceiling methods missing

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Dec 29 18:12:01 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by alp at atoker.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80384

--- shadow/80384	2006-12-28 14:23:34.000000000 -0500
+++ shadow/80384.tmp.1387	2006-12-29 18:12:01.000000000 -0500
@@ -30,6 +30,51 @@
 
 
 ------- Additional Comments From miguel at ximian.com  2006-12-28 14:23 -------
 This looks fine to apply.
 
 Please provide NUnit tests cases and commit.
+
+------- Additional Comments From alp at atoker.com  2006-12-29 18:12 -------
+I've been running with the local changes for a day. This came up when
+I was building Banshee:
+
+        private bool CheckTemporarySpace()
+        {
+            long estimated_encoded_bytes =
+BurnerUtilities.DiscTimeToSize(total_duration);
+            long free_space =
+PathUtil.GetDirectoryAvailableSpace(Paths.TempDir);
+            
+            if(free_space >= 0 && estimated_encoded_bytes >= free_space) {
+               
+LogCore.Instance.PushError(Catalog.GetString("Insufficient Disk Space"),
+                    String.Format(Catalog.GetString("Creating this CD
+requires at least {0} MiB of free disk space."),
+                        Math.Ceiling(estimated_encoded_bytes / 1000000)));
+                return false;
+            }
+            
+            return true;
+        }
+
+
+
+./Banshee.Burner/BurnerSessionPreparer.cs(177,30): error CS0121: The
+call is ambiguous between the following methods or properties:
+`System.Math.Ceiling(double)' and `System.Math.Ceiling(decimal)'
+/opt/mono/lib/mono/2.0/mscorlib.dll (Location of the symbol related to
+previous error)
+/opt/mono/lib/mono/2.0/mscorlib.dll (Location of the symbol related to
+previous error)
+./DBusRemote.cs(43,34): warning CS0219: The variable `nameReply' is
+assigned but its value is never used
+Compilation failed: 1 error(s), 1 warnings
+make[3]: *** [Banshee.Base.dll] Error 1
+make[3]: Leaving directory
+`/home/alp/Projects/gnome/banshee/src/Banshee.Base'
+make[2]: *** [all-recursive] Error 1
+
+
+Is this a compiler bug, or should the new overload really break this
+use case?
+


More information about the mono-bugs mailing list