File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -90,31 +90,31 @@ namespace Fuse.BackgroundDownload
90
90
{
91
91
var handler = OnPaused ;
92
92
if ( handler != null )
93
- handler ( taskIdentifier ) ;
93
+ handler ( ( ulong ) taskIdentifier ) ;
94
94
}
95
95
96
96
[ ForeignFixedName ]
97
97
static void RecieveProgress ( int taskIdentifier , int totalBytesWritten , int totalBytesExpectedToWrite )
98
98
{
99
99
var handler = OnProgress ;
100
100
if ( handler != null )
101
- handler ( taskIdentifier , totalBytesWritten , totalBytesExpectedToWrite ) ;
101
+ handler ( ( ulong ) taskIdentifier , ( ulong ) totalBytesWritten , ( ulong ) totalBytesExpectedToWrite ) ;
102
102
}
103
103
104
104
[ ForeignFixedName ]
105
105
static void RecieveSuccessfulCompletion ( int taskIdentifier , string finalPath )
106
106
{
107
107
var handler = OnSucceeded ;
108
108
if ( handler != null )
109
- handler ( taskIdentifier , finalPath ) ;
109
+ handler ( ( ulong ) taskIdentifier , finalPath ) ;
110
110
}
111
111
112
112
[ ForeignFixedName ]
113
113
static void RecieveErroredCompletion ( int taskIdentifier , string errorMessage )
114
114
{
115
115
var handler = OnFailed ;
116
116
if ( handler != null )
117
- handler ( taskIdentifier , errorMessage ) ;
117
+ handler ( ( ulong ) taskIdentifier , errorMessage ) ;
118
118
}
119
119
}
120
120
}
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ namespace Fuse.BackgroundDownload
89
89
if ( totalBytesExpectedToWrite == UNKNOWN_SIZE )
90
90
handler ( taskIdentifier , totalBytesWritten , totalBytesExpectedToWrite ) ;
91
91
else
92
- handler ( taskIdentifier , - 1 , - 1 ) ;
92
+ handler ( taskIdentifier , ( ulong ) - 1 , ( ulong ) - 1 ) ;
93
93
}
94
94
}
95
95
You can’t perform that action at this time.
0 commit comments