[lib.scha] updated size type (uint16)
This commit is contained in:
parent
b48b7c378b
commit
b23acf97f8
|
@ -9,8 +9,8 @@ import (
|
|||
/* (0) Static
|
||||
---------------------------------------------------------*/
|
||||
/* (1) Constants */
|
||||
const HBITSIZE uint = 512;
|
||||
const HSIZE uint = HBITSIZE / 8;
|
||||
const HBITSIZE uint32 = 512;
|
||||
const HSIZE uint16 = uint16(HBITSIZE / 8);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ func TestSimpleHash(t *testing.T){
|
|||
}
|
||||
|
||||
/* (2) Fail on wrong size */
|
||||
if digestLength != HSIZE {
|
||||
if uint16(digestLength) != HSIZE {
|
||||
t.Errorf("Expected hash digest of %d bytes ; %d bytes received", HSIZE, digestLength);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue