Skip to content

Commit 8aadc13

Browse files
committed
Added some braces around control structures
1 parent 35bb3b1 commit 8aadc13

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/vi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,9 @@ void vi_update(void)
747747
vres = (v_end - v_start) >> 1; // vertical is measured in half-lines
748748

749749
// skip invalid/unsupported frame sizes
750-
if (hres <= 0 || vres <= 0)
750+
if (hres <= 0 || vres <= 0) {
751751
return;
752+
}
752753

753754
x_add = *vi_reg_ptr[VI_X_SCALE] & 0xfff;
754755
x_start = (*vi_reg_ptr[VI_X_SCALE] >> 16) & 0xfff;

plugin-mupen64plus/plugin.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ void plugin_init(void)
1818

1919
int core_version;
2020
CoreGetVersion(NULL, &core_version, NULL, NULL, NULL);
21-
if (core_version >= 0x020501)
21+
if (core_version >= 0x020501) {
2222
rdram_size = *gfx.RDRAM_SIZE;
23-
else
23+
} else {
2424
rdram_size = 0x800000;
25+
}
2526

2627
// mupen64plus plugins can't access the hidden bits, so allocate it on our own
2728
rdram_hidden_bits = malloc(rdram_size);

0 commit comments

Comments
 (0)