summaryrefslogtreecommitdiff
path: root/gme
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-13 12:56:18 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-13 12:56:18 +0200
commitad80d4bb9cea19a3c6b25dd9fc9d3d35dfbdaf30 (patch)
treea73f54e350da6e198bd4c21abe05d2dd4117a7df /gme
parent5c8bf9cf9d158244ca7915b597f17222d85aa50a (diff)
fixed compiler warnings in gme code
Diffstat (limited to 'gme')
-rw-r--r--gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.cpp2
-rw-r--r--gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.h14
2 files changed, 6 insertions, 10 deletions
diff --git a/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.cpp b/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.cpp
index fd014e4b..07e9d658 100644
--- a/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.cpp
+++ b/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.cpp
@@ -27,7 +27,7 @@ int const silent_buf_size = 1; // size used for Silent_Blip_Buffer
Blip_Buffer::Blip_Buffer()
{
- factor_ = LONG_MAX;
+ factor_ = 0x7fffffff;
offset_ = 0;
buffer_ = 0;
buffer_size_ = 0;
diff --git a/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.h b/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.h
index 9467584f..73341b8c 100644
--- a/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.h
+++ b/gme/Game_Music_Emu-0.5.2/gme/Blip_Buffer.h
@@ -4,15 +4,11 @@
#ifndef BLIP_BUFFER_H
#define BLIP_BUFFER_H
- // internal
- #include <limits.h>
- #if INT_MAX >= 0x7FFFFFFF
- typedef int blip_long;
- typedef unsigned blip_ulong;
- #else
- typedef long blip_long;
- typedef unsigned long blip_ulong;
- #endif
+// internal
+#include <limits.h>
+#include <stdint.h>
+typedef int32_t blip_long;
+typedef uint32_t blip_ulong;
// Time unit at source clock rate
typedef blip_long blip_time_t;