changeset 2238:240bdf781ad0

eliminate warnings on x86_64.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Mon, 17 Dec 2007 18:04:53 +0900
parents c4cd92ff8d53
children 224ebe9caaac a5c96af75300
files src/console/Blip_Buffer.cxx src/console/Blip_Buffer.h src/console/Hes_Cpu.h src/console/Music_Emu.cxx src/console/Nes_Apu.h src/console/Nes_Cpu.h src/console/Sap_Cpu.h
diffstat 7 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/console/Blip_Buffer.cxx	Sun Dec 16 21:00:58 2007 +0900
+++ b/src/console/Blip_Buffer.cxx	Mon Dec 17 18:04:53 2007 +0900
@@ -27,7 +27,7 @@
 
 Blip_Buffer::Blip_Buffer()
 {
-	factor_       = LONG_MAX;
+	factor_       = UINT_MAX;
 	offset_       = 0;
 	buffer_       = 0;
 	buffer_size_  = 0;
--- a/src/console/Blip_Buffer.h	Sun Dec 16 21:00:58 2007 +0900
+++ b/src/console/Blip_Buffer.h	Mon Dec 17 18:04:53 2007 +0900
@@ -8,7 +8,7 @@
 	#include <limits.h>
 	#if INT_MAX >= 0x7FFFFFFF
 		typedef int blip_long;
-		typedef unsigned blip_ulong;
+		typedef unsigned int blip_ulong;
 	#else
 		typedef long blip_long;
 		typedef unsigned long blip_ulong;
--- a/src/console/Hes_Cpu.h	Sun Dec 16 21:00:58 2007 +0900
+++ b/src/console/Hes_Cpu.h	Mon Dec 17 18:04:53 2007 +0900
@@ -8,7 +8,7 @@
 
 typedef blargg_long hes_time_t; // clock cycle count
 typedef unsigned hes_addr_t; // 16-bit address
-enum { future_hes_time = LONG_MAX / 2 + 1 };
+enum { future_hes_time = INT_MAX / 2 + 1 };
 
 class Hes_Cpu {
 public:
--- a/src/console/Music_Emu.cxx	Sun Dec 16 21:00:58 2007 +0900
+++ b/src/console/Music_Emu.cxx	Mon Dec 17 18:04:53 2007 +0900
@@ -33,7 +33,7 @@
 	emu_time         = 0;
 	emu_track_ended_ = true;
 	track_ended_     = true;
-	fade_start       = LONG_MAX / 2 + 1;
+	fade_start       = INT_MAX / 2 + 1;
 	fade_step        = 1;
 	silence_time     = 0;
 	silence_count    = 0;
--- a/src/console/Nes_Apu.h	Sun Dec 16 21:00:58 2007 +0900
+++ b/src/console/Nes_Apu.h	Mon Dec 17 18:04:53 2007 +0900
@@ -78,7 +78,7 @@
 	// Get time that APU-generated IRQ will occur if no further register reads
 	// or writes occur. If IRQ is already pending, returns irq_waiting. If no
 	// IRQ will occur, returns no_irq.
-	enum { no_irq = LONG_MAX / 2 + 1 };
+	enum { no_irq = INT_MAX / 2 + 1 };
 	enum { irq_waiting = 0 };
 	nes_time_t earliest_irq( nes_time_t ) const;
 	
--- a/src/console/Nes_Cpu.h	Sun Dec 16 21:00:58 2007 +0900
+++ b/src/console/Nes_Cpu.h	Mon Dec 17 18:04:53 2007 +0900
@@ -8,7 +8,7 @@
 
 typedef blargg_long nes_time_t; // clock cycle count
 typedef unsigned nes_addr_t; // 16-bit address
-enum { future_nes_time = LONG_MAX / 2 + 1 };
+enum { future_nes_time = INT_MAX / 2 + 1 };
 
 class Nes_Cpu {
 public:
--- a/src/console/Sap_Cpu.h	Sun Dec 16 21:00:58 2007 +0900
+++ b/src/console/Sap_Cpu.h	Mon Dec 17 18:04:53 2007 +0900
@@ -8,7 +8,7 @@
 
 typedef blargg_long sap_time_t; // clock cycle count
 typedef unsigned sap_addr_t; // 16-bit address
-enum { future_sap_time = LONG_MAX / 2 + 1 };
+enum { future_sap_time = INT_MAX / 2 + 1 };
 
 class Sap_Cpu {
 public: