@@ -457,17 +457,17 @@ SCIP_DECL_HASHGETKEY(overlapHashGetKey)
457
457
static
458
458
SCIP_DECL_HASHKEYEQ (overlapHashKeyEqPtr )
459
459
{
460
- long o1 ;
461
- long o2 ;
460
+ size_t o1 ;
461
+ size_t o2 ;
462
462
SCIP_HYPERGRAPH * hypergraph ;
463
463
int begin1 ;
464
464
int beyond1 ;
465
465
int begin2 ;
466
466
int beyond2 ;
467
467
int i2 ;
468
468
469
- o1 = (long )key1 - 1 ;
470
- o2 = (long )key2 - 1 ;
469
+ o1 = (size_t )key1 - 1 ;
470
+ o2 = (size_t )key2 - 1 ;
471
471
hypergraph = (SCIP_HYPERGRAPH * ) userptr ;
472
472
begin1 = hypergraph -> overlapsverticesbeg [o1 ];
473
473
beyond1 = hypergraph -> overlapsverticesbeg [o1 + 1 ];
@@ -492,14 +492,14 @@ SCIP_DECL_HASHKEYEQ(overlapHashKeyEqPtr)
492
492
static
493
493
SCIP_DECL_HASHKEYVAL (overlapHashKeyValPtr )
494
494
{
495
- long o ;
495
+ size_t o ;
496
496
SCIP_HYPERGRAPH * hypergraph ;
497
497
int begin ;
498
498
int beyond ;
499
499
int i ;
500
500
uint32_t hash ;
501
501
502
- o = (long )key - 1 ;
502
+ o = (size_t )key - 1 ;
503
503
hypergraph = (SCIP_HYPERGRAPH * ) userptr ;
504
504
begin = hypergraph -> overlapsverticesbeg [o ];
505
505
beyond = hypergraph -> overlapsverticesbeg [o + 1 ];
@@ -534,6 +534,7 @@ SCIP_RETCODE findOverlap(
534
534
int first ;
535
535
int beyond ;
536
536
void * element ;
537
+ size_t nextoverlap ;
537
538
538
539
assert (hypergraph );
539
540
assert (nvertices > 0 );
@@ -550,16 +551,17 @@ SCIP_RETCODE findOverlap(
550
551
hypergraph -> overlapsvertices [first + i ] = vertices [i ];
551
552
hypergraph -> overlapsverticesbeg [hypergraph -> noverlaps + 1 ] = beyond ;
552
553
553
- element = SCIPhashtableRetrieve (hypergraph -> overlaphashtable , (void * ) (hypergraph -> noverlaps + 1UL ));
554
+ nextoverlap = (size_t ) hypergraph -> noverlaps + 1UL ; /*lint !e571 */
555
+ element = SCIPhashtableRetrieve (hypergraph -> overlaphashtable , (void * ) nextoverlap );
554
556
if ( element != NULL )
555
557
{
556
- * poverlap = (long ) element - 1 ; /*lint !e712*/
558
+ * poverlap = (size_t ) element - 1 ; /*lint !e712*/
557
559
if ( padded )
558
560
* padded = FALSE;
559
561
}
560
562
else if ( add )
561
563
{
562
- SCIP_CALL_ABORT ( SCIPhashtableInsert (hypergraph -> overlaphashtable , (void * ) ( hypergraph -> noverlaps + 1UL ) ) );
564
+ SCIP_CALL_ABORT ( SCIPhashtableInsert (hypergraph -> overlaphashtable , (void * ) nextoverlap ) );
563
565
564
566
* poverlap = hypergraph -> noverlaps ;
565
567
hypergraph -> noverlaps ++ ;
0 commit comments