Ignore:
Timestamp:
Oct 13, 2015, 4:21:06 PM (9 years ago)
Author:
cfuguet
Message:

Fixing some warnings for new compiler's versions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/modules/vci_mem_cache/caba/source/src/vci_mem_cache.cpp

    r1014 r1019  
    697697    {
    698698        const uint32_t srcid_width = vci_param_int::S;
    699 
    700         uint8_t req_x = (req_srcid >> (srcid_width - m_x_width));
    701         uint8_t req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1);
    702 
    703         return abs(m_x_self - req_x) + abs(m_y_self - req_y) + 1;
     699        int req_x = (req_srcid >> (srcid_width - m_x_width));
     700        int req_y = (req_srcid >> (srcid_width - m_x_width - m_y_width)) & ((1 << m_y_width) - 1);
     701
     702        return abs((int)m_x_self - req_x) + abs((int)m_y_self - req_y) + 1;
    704703    }
    705704
Note: See TracChangeset for help on using the changeset viewer.