Fix 2x return

This commit is contained in:
Syping 2020-10-25 19:07:36 +01:00
parent 74f4478c32
commit 1523aff981

View file

@ -44,13 +44,11 @@ QByteArray checksum_lib::generateChecksum(const QByteArray &data)
const u_int32_t hash = hash32Func(udata, size);
free(udata);
return QByteArray::number((quint32)hash, 16);
return QByteArray();
}
else {
const u_int64_t hash = hash64Func(udata, size);
free(udata);
return QByteArray::number((quint64)hash, 16);
return QByteArray();
}
}