diff --git a/sparta/simdb/test/HDF5Database/HDF5Database_test.cpp b/sparta/simdb/test/HDF5Database/HDF5Database_test.cpp index ea42a68283..85f6372af8 100644 --- a/sparta/simdb/test/HDF5Database/HDF5Database_test.cpp +++ b/sparta/simdb/test/HDF5Database/HDF5Database_test.cpp @@ -210,9 +210,9 @@ struct CompoundWithMatrixPOD CompoundWithMatrixPOD createRandomCompoundWithMatrixPOD() { CompoundWithMatrixPOD comp; - comp.ch = chooseRand(); - comp.i1 = chooseRand(); - comp.ui1 = chooseRand(); + comp.ch = (char) chooseRand(); + comp.i1 = (int8_t) chooseRand(); + comp.ui1 = (uint8_t)chooseRand(); comp.i2 = chooseRand(); comp.ui2 = chooseRand(); comp.i4 = chooseRand();