Commit MetaInfo

Revision95e4b5fdafa1eba4af5c44c23f995b1aeaf73ca7 (tree)
Time2021-09-04 03:06:06
Authoringlorion <homemicro@ingl...>
Commiteringlorion

Log Message

emulator: fixed if statement in stop condition handling

The if statement read: if (s->cartridge, ...)
This has been corrected to: if (s->cartridge && ...)

Change Summary

Incremental Difference

diff -r 2848176de5b1 -r 95e4b5fdafa1 emulator/hm1000.c
--- a/emulator/hm1000.c Tue Apr 07 08:20:23 2020 +0100
+++ b/emulator/hm1000.c Fri Sep 03 11:06:06 2021 -0700
@@ -261,7 +261,7 @@
261261 s->twi_status = 15;
262262 } else {
263263 /* Stop condition. */
264- if (s->cartridge, addr_set && addressing_cartridge && twi_addr_even) {
264+ if (s->cartridge && addr_set && addressing_cartridge && twi_addr_even) {
265265 msync(s->cartridge, s->cartridge_size, MS_ASYNC);
266266 }
267267 s->twi_status = 0;
Show on old repository browser