2008-06-28 Mike Kestner <mkestner@novell.com>
* glib/Marshaller.cs: some 64 bit fixes for time_t marshaling issue found by Federico. svn path=/trunk/gtk-sharp/; revision=106828
This commit is contained in:
parent
ff1db7980c
commit
51454acbb7
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2008-06-28 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* glib/Marshaller.cs: some 64 bit fixes for time_t marshaling
|
||||
issue found by Federico.
|
||||
|
||||
2008-06-28 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* gtk/TreeSelection.custom: use list marshaler to avoid O(n^2)
|
||||
|
|
|
@ -312,12 +312,12 @@ namespace GLib {
|
|||
|
||||
public static IntPtr DateTimeTotime_t (DateTime time)
|
||||
{
|
||||
return new IntPtr (((int)time.Subtract (local_epoch).TotalSeconds) - utc_offset);
|
||||
return new IntPtr (((long)time.Subtract (local_epoch).TotalSeconds) - utc_offset);
|
||||
}
|
||||
|
||||
public static DateTime time_tToDateTime (IntPtr time_t)
|
||||
{
|
||||
return local_epoch.AddSeconds ((int)time_t + utc_offset);
|
||||
return local_epoch.AddSeconds (time_t.ToInt64 () + utc_offset);
|
||||
}
|
||||
|
||||
[DllImport("glibsharpglue-2")]
|
||||
|
|
Loading…
Reference in a new issue