Author: toshok
Date: 2007-08-09 00:55:40 -0400 (Thu, 09 Aug 2007)
New Revision: 83709
Modified:
trunk/moon/src/clock.h
Log:
check in TimeSpan_FromSeconds #define, and use it in Duration::FromSeconds
Modified: trunk/moon/src/clock.h
===================================================================
--- trunk/moon/src/clock.h 2007-08-09 04:21:45 UTC (rev 83708)
+++ trunk/moon/src/clock.h 2007-08-09 04:55:40 UTC (rev 83709)
@@ -17,6 +17,8 @@
G_BEGIN_DECLS
+#define TimeSpan_FromSeconds(s) ((TimeSpan)(s) * 10000000)
+
// misc types
typedef gint32 FillBehavior;
enum {
@@ -70,7 +72,7 @@
// This should live in a TimeSpan class, but oh well.. */
- static Duration FromSeconds (int seconds) { return Duration
((TimeSpan)seconds * 10000000); }
+ static Duration FromSeconds (int seconds) { return Duration
(TimeSpan_FromSeconds (seconds)); }
private:
DurationKind k;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches