mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-07 00:46:17 +08:00
Fix MSVC warnings
This commit is contained in:
@@ -29,7 +29,6 @@ int rand_main(int argc, char **argv)
|
||||
char *outfile = NULL;
|
||||
FILE *outfp = stdout;
|
||||
uint8_t buf[2048];
|
||||
int i;
|
||||
|
||||
argc--;
|
||||
argv++;
|
||||
@@ -79,7 +78,7 @@ bad:
|
||||
goto end;
|
||||
}
|
||||
|
||||
while (outlen) {
|
||||
while (outlen > 0) {
|
||||
size_t len = outlen < sizeof(buf) ? outlen : sizeof(buf);
|
||||
|
||||
if (rdrand) {
|
||||
@@ -107,7 +106,7 @@ bad:
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
outlen -= len;
|
||||
outlen -= (int)len;
|
||||
}
|
||||
if (hex) {
|
||||
fprintf(outfp, "\n");
|
||||
|
||||
Reference in New Issue
Block a user