From: Frode Solheim Date: Tue, 29 Jul 2014 20:20:05 +0000 (+0200) Subject: cdtv: trivial compilation fix X-Git-Tag: 3000~101^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=45d1660859e1466b1cbd0cc0b6fc9300239550fb;p=francis%2Fwinuae.git cdtv: trivial compilation fix --- diff --git a/cdtv.cpp b/cdtv.cpp index 7c64d702..59b45aa2 100644 --- a/cdtv.cpp +++ b/cdtv.cpp @@ -1205,13 +1205,12 @@ void CDTV_hsync_handler (void) static void do_stch (void) { - static int stch_cnt; - if ((tp_cr & 1) && !(tp_air & (1 << 2))) { stch = 1; activate_stch = 0; tp_check_interrupts (); #ifdef CDTV_DEBUG + static int stch_cnt; write_log (_T("STCH %d\n"), stch_cnt++); #endif } @@ -1788,7 +1787,7 @@ uae_u8 *save_cdtv (int *len, uae_u8 *dstptr) save_u32 (last_play_pos); save_u32 (last_play_end); save_u64 (dma_wait); - for (int i = 0; i < sizeof cdrom_command_input; i++) + for (int i = 0; i < sizeof (cdrom_command_input); i++) save_u8 (cdrom_command_input[i]); save_u8 (cdrom_command_cnt_in); save_u16 (cdtv_sectorsize); @@ -1839,7 +1838,7 @@ uae_u8 *restore_cdtv (uae_u8 *src) last_play_pos = restore_u32 (); last_play_end = restore_u32 (); dma_wait = restore_u64 (); - for (int i = 0; i < sizeof cdrom_command_input; i++) + for (int i = 0; i < sizeof (cdrom_command_input); i++) cdrom_command_input[i] = restore_u8 (); cdrom_command_cnt_in = restore_u8 (); cdtv_sectorsize = restore_u16 ();