File tree 2 files changed +6
-2
lines changed
core/src/com/biglybt/core
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 317
317
getIntProperty (
318
318
int name )
319
319
{
320
- return ((int )getLongProperty ( name ));
320
+ long res = getLongProperty ( name );
321
+
322
+ return ( res == Long .MIN_VALUE ?Integer .MIN_VALUE :(int )res );
321
323
}
322
324
323
325
protected long
Original file line number Diff line number Diff line change 149
149
long seeds = (Long )properties .get ( SearchResult .PR_SEED_COUNT );
150
150
long leechers = (Long )properties .get ( SearchResult .PR_LEECHER_COUNT );
151
151
152
- completed_count = ((Long )properties .get ( SearchResult .PR_COMPLETED_COUNT )).intValue ();
152
+ long cc = (Long )properties .get ( SearchResult .PR_COMPLETED_COUNT );
153
+
154
+ completed_count = cc <0 ?-1 :(int )cc ;
153
155
154
156
seed_count = (int )(seeds <0 ?0 :seeds );
155
157
peer_count = (int )(leechers <0 ?0 :leechers );
You can’t perform that action at this time.
0 commit comments