From 4f616b6775fe11089df7bf349b3ff8788257797f Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 7 Jul 2006 22:47:55 +0000 Subject: [PATCH] fix 64bit stuff Originally committed to SVN as r471. --- configure.ac | 1 + core/audio_display.cpp | 2 +- core/audio_provider_stream.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c44c2593d..7db71acdf 100644 --- a/configure.ac +++ b/configure.ac @@ -129,6 +129,7 @@ AC_CXX_FLAG([-Wall]) AC_CXX_FLAG([-Wextra],[AC_CXX_FLAG([-W])]) AC_CXX_FLAG([-Wno-unused-parameter]) AC_CXX_FLAG([-Wno-long-long]) +AC_CXX_FLAG([-fpermissive]) AC_CXX_FLAG([-std=c++98]) diff --git a/core/audio_display.cpp b/core/audio_display.cpp index ea8b0c74b..594ce411d 100644 --- a/core/audio_display.cpp +++ b/core/audio_display.cpp @@ -1305,7 +1305,7 @@ void AudioDisplay::OnMouseEvent(wxMouseEvent& event) { // Send data to provider scrubProvider->Append(buf,bufSize); - if (!player->IsPlaying()) player->Play(0,0xFFFFFFFFFFFF); + if (!player->IsPlaying()) player->Play(0,~0ULL); delete buf; } } diff --git a/core/audio_provider_stream.cpp b/core/audio_provider_stream.cpp index 406f66970..8e79cec92 100644 --- a/core/audio_provider_stream.cpp +++ b/core/audio_provider_stream.cpp @@ -51,7 +51,7 @@ StreamAudioProvider::StreamAudioProvider() { endPos = BUFSIZE; buffered = 0; hasBuf = false; - num_samples = 0xFFFFFFFFFFFFFF; + num_samples = ~0ULL; }