Ignore:
Timestamp:
Sep 11, 2019, 4:41:37 PM (12 months ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmBin: Fixed MsgPack? writer classes constructors for long elements number. Add next testcases.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ROCmMetadataMP.cpp

    r4953 r4954  
    10831083        d[0] = 0xdd;
    10841084        uint32_t v2 = elemsNum;
    1085         for (cxuint i=5; i >= 0; i--, v2>>=8)
     1085        for (cxint i=4; i > 0; i--, v2>>=8)
    10861086            d[i] = v2&0xff;
    1087         output.insert(output.end(), d, d+3);
     1087        output.insert(output.end(), d, d+5);
    10881088    }
    10891089}
     
    11471147        d[0] = 0xdf;
    11481148        uint32_t v2 = elemsNum;
    1149         for (cxuint i=5; i >= 0; i--, v2>>=8)
     1149        for (cxint i=4; i > 0; i--, v2>>=8)
    11501150            d[i] = v2&0xff;
    1151         output.insert(output.end(), d, d+3);
     1151        output.insert(output.end(), d, d+5);
    11521152    }
    11531153}
Note: See TracChangeset for help on using the changeset viewer.