rhythmbox r5986 - in trunk: . rhythmdb



Author: jmatthew
Date: Sat Oct 18 01:55:02 2008
New Revision: 5986
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5986&view=rev

Log:
2008-10-18  Jonathan Matthew  <jonathan d14n org>

	* rhythmdb/rhythmdb-tree.c: (version_to_int):
	Use roundf to convert the version number to an integer.
	Maybe it'll work most of the time now.


Modified:
   trunk/ChangeLog
   trunk/rhythmdb/rhythmdb-tree.c

Modified: trunk/rhythmdb/rhythmdb-tree.c
==============================================================================
--- trunk/rhythmdb/rhythmdb-tree.c	(original)
+++ trunk/rhythmdb/rhythmdb-tree.c	Sat Oct 18 01:55:02 2008
@@ -349,7 +349,7 @@
 		return (int) (1.0 * 100);
 	}
 
-	return ceil(ver * 100);
+	return (int)roundf(ver * 100);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]