Skip to content

Commit 7293638

Browse files
Fuse 1.9 fix
Baggers: Seems like uno might have previously allowed implicit casts from int to ulong (which is likely illegal according to the c# spec) so I guess that got fixed.
1 parent c74d839 commit 7293638

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Android/AndroidImpl.uno

+4-4
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,31 @@ namespace Fuse.BackgroundDownload
9090
{
9191
var handler = OnPaused;
9292
if (handler != null)
93-
handler(taskIdentifier);
93+
handler((ulong)taskIdentifier);
9494
}
9595

9696
[ForeignFixedName]
9797
static void RecieveProgress(int taskIdentifier, int totalBytesWritten, int totalBytesExpectedToWrite)
9898
{
9999
var handler = OnProgress;
100100
if (handler != null)
101-
handler(taskIdentifier, totalBytesWritten, totalBytesExpectedToWrite);
101+
handler((ulong)taskIdentifier, (ulong)totalBytesWritten, (ulong)totalBytesExpectedToWrite);
102102
}
103103

104104
[ForeignFixedName]
105105
static void RecieveSuccessfulCompletion(int taskIdentifier, string finalPath)
106106
{
107107
var handler = OnSucceeded;
108108
if (handler != null)
109-
handler(taskIdentifier, finalPath);
109+
handler((ulong)taskIdentifier, finalPath);
110110
}
111111

112112
[ForeignFixedName]
113113
static void RecieveErroredCompletion(int taskIdentifier, string errorMessage)
114114
{
115115
var handler = OnFailed;
116116
if (handler != null)
117-
handler(taskIdentifier, errorMessage);
117+
handler((ulong)taskIdentifier, errorMessage);
118118
}
119119
}
120120
}

src/iOS/iOSImpl.uno

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ namespace Fuse.BackgroundDownload
8989
if (totalBytesExpectedToWrite== UNKNOWN_SIZE)
9090
handler(taskIdentifier, totalBytesWritten, totalBytesExpectedToWrite);
9191
else
92-
handler(taskIdentifier, -1, -1);
92+
handler(taskIdentifier, (ulong)-1, (ulong)-1);
9393
}
9494
}
9595

0 commit comments

Comments
 (0)