summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-04-19 15:36:01 +0200
committerRobin Gareus <robin@gareus.org>2018-04-19 15:36:30 +0200
commite1f94bbb4a1c2add7402d806f337d072fe4163e9 (patch)
tree29a610bb909f3cf1239135aa39f1bea732f7b907
parentcc5e758a08b537c711df49549369d1675e183c94 (diff)
Fix 32bit builds
Unsigned long is 32bit on 32bit systems, besides sampleoffset and start variables are signed int64_t. resulting in a compiler error: integer constant is too large for 'unsigned long' type.
-rw-r--r--libs/ptformat/ptfformat.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/ptformat/ptfformat.cc b/libs/ptformat/ptfformat.cc
index 89f3062da1..6fc4b115e5 100644
--- a/libs/ptformat/ptfformat.cc
+++ b/libs/ptformat/ptfformat.cc
@@ -1760,9 +1760,9 @@ nocustom:
j+=startbytes;
if (offsetbytes == 5)
- sampleoffset -= 1000000000000ul;
+ sampleoffset -= 1000000000000;
if (startbytes == 5)
- start -= 1000000000000ul;
+ start -= 1000000000000;
std::string filename = string(name);
wav_t f = {
@@ -1873,8 +1873,8 @@ nocustom:
}
m+=8;
findex3 = ptfunxored[m] | (ptfunxored[m+1] << 8);
- sampleoffset -= 1000000000000ul;
- start -= 1000000000000ul;
+ sampleoffset -= 1000000000000;
+ start -= 1000000000000;
/*
// Find wav with correct findex
@@ -2031,9 +2031,9 @@ nocustom:
j+=startbytes;
if (offsetbytes == 5)
- sampleoffset -= 1000000000000ul;
+ sampleoffset -= 1000000000000;
if (startbytes == 5)
- start -= 1000000000000ul;
+ start -= 1000000000000;
std::string filename = string(name);
wav_t f = {