comparison Plugins/Input/console/Gbs_Emu.cpp @ 256:84aabc053b6e trunk

[svn] C++ warning fixes by external contractor Stephen Bennett.
author chainsaw
date Sun, 04 Dec 2005 08:49:53 -0800
parents 252843aac42f
children 0b9507985f0d
comparison
equal deleted inserted replaced
255:ad1e65c6a854 256:84aabc053b6e
297 297
298 blip_time_t Gbs_Emu::run( int msec, bool* added_stereo ) 298 blip_time_t Gbs_Emu::run( int msec, bool* added_stereo )
299 { 299 {
300 require( rom ); // file must be loaded 300 require( rom ); // file must be loaded
301 301
302 gb_time_t duration = clock_rate * (1.0 / 1000.0) * msec; 302 gb_time_t duration = (gb_time_t) (clock_rate * (1.0 / 1000.0) * msec);
303 cpu_time = 0; 303 cpu_time = 0;
304 while ( cpu_time < duration ) 304 while ( cpu_time < duration )
305 { 305 {
306 // check for idle cpu 306 // check for idle cpu
307 if ( cpu.r.pc == halt_addr ) 307 if ( cpu.r.pc == halt_addr )