mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Push "int i" into "for (int i = etc; etc; etc)"
This commit is contained in:
1 parent
16b51dd2a4
commit
d5075c7e94
23 files changed
+229
-370
No files matched your search
@@ -175,9 +175,8 @@ main(int argc, char** argv) {
|
||||
// https://play.golang.org/p/IU2T58P00C
|
||||
const uint32_t expected_hash_of_1mib_of_zeroes = 0x00f00001UL;
|
||||
|
||||
int i;
|
||||
int num_bad = 0;
|
||||
for (i = 0; i < num_reps; i++) {
|
||||
for (int i = 0; i < num_reps; i++) {
|
||||
uint32_t actual_hash = calculate_hash(g_buffer, BUFFER_SIZE);
|
||||
if (!g_flags.no_check && (actual_hash != expected_hash_of_1mib_of_zeroes)) {
|
||||
num_bad++;
|
||||
|
||||
@@ -330,8 +330,7 @@ decode(bool frag_dst, bool frag_idat) {
|
||||
struct timeval bench_start_tv;
|
||||
gettimeofday(&bench_start_tv, NULL);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < reps; i++) {
|
||||
for (int i = 0; i < reps; i++) {
|
||||
const char* msg = decode_once(frag_dst, frag_idat);
|
||||
if (msg) {
|
||||
return msg;
|
||||
@@ -399,8 +398,7 @@ main(int argc, char** argv) {
|
||||
"it, first\n"
|
||||
"# install Go, then run \"go get golang.org/x/perf/cmd/benchstat\".\n");
|
||||
|
||||
int i;
|
||||
for (i = 0; i < 5; i++) {
|
||||
for (int i = 0; i < 5; i++) {
|
||||
msg = decode(true, true);
|
||||
if (msg) {
|
||||
return fail(msg);
|
||||
|
||||
@@ -312,8 +312,7 @@ main1(int argc, char** argv) {
|
||||
WUFFS_JSON__QUIRK_REPLACE_INVALID_UNICODE,
|
||||
0,
|
||||
};
|
||||
uint32_t i;
|
||||
for (i = 0; quirks[i]; i++) {
|
||||
for (uint32_t i = 0; quirks[i]; i++) {
|
||||
wuffs_base__token_decoder__set_quirk_enabled(g_dec, quirks[i], true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user