diff --git a/src/swtpm_cert/ek-cert.c b/src/swtpm_cert/ek-cert.c index 26b9c26..b8e9dab 100644 --- a/src/swtpm_cert/ek-cert.c +++ b/src/swtpm_cert/ek-cert.c @@ -524,7 +524,7 @@ main(int argc, char *argv[]) fprintf(stderr, "Exponent is wrong and cannot be 0.\n"); goto cleanup; } - if (exponent > UINT_MAX) { + if ((unsigned long int)exponent > UINT_MAX) { fprintf(stderr, "Exponent must fit into 32bits.\n"); goto cleanup; }