Ignore:
Timestamp:
Aug 21, 2018, 6:01:01 PM (6 years ago)
Author:
alain
Message:

Fix several GCC warning related to the -Wextra compilation option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/grdxt.c

    r457 r473  
    7373        req.type = KMEM_GENERIC;
    7474
    75         for( ix1=0 ; ix1 < (1 << w1) ; ix1++ )
     75        for( ix1=0 ; ix1 < (uint32_t)(1 << w1) ; ix1++ )
    7676        {
    7777        ptr2 = ptr1[ix1];
     
    7979                if( ptr2 == NULL ) continue;
    8080
    81         for( ix2=0 ; ix2 < (1 << w2) ; ix2++ )
     81        for( ix2=0 ; ix2 < (uint32_t)(1 << w2) ; ix2++ )
    8282        {
    8383            ptr3 = ptr2[ix2];
     
    129129           name, 1<<w1 , 1<<w2 , 1<<w3 );
    130130
    131         for( ix1=0 ; ix1 < (1<<w1) ; ix1++ )
     131        for( ix1=0 ; ix1 < (uint32_t)(1<<w1) ; ix1++ )
    132132        {
    133133        ptr2 = ptr1[ix1];
    134134        if( ptr2 == NULL )  continue;
    135135   
    136         for( ix2=0 ; ix2 < (1<<w2) ; ix2++ )
     136        for( ix2=0 ; ix2 < (uint32_t)(1<<w2) ; ix2++ )
    137137        {
    138138            ptr3 = ptr2[ix2];
    139139            if( ptr3 == NULL ) continue;
    140140
    141             for( ix3=0 ; ix3 < (1<<w3) ; ix3++ )
     141            for( ix3=0 ; ix3 < (uint32_t)(1<<w3) ; ix3++ )
    142142            {
    143143                value = (intptr_t)ptr3[ix3];
Note: See TracChangeset for help on using the changeset viewer.