mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
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.
This commit is contained in:
parent
cc5e758a08
commit
e1f94bbb4a
1 changed files with 6 additions and 6 deletions
|
|
@ -1760,9 +1760,9 @@ nocustom:
|
||||||
j+=startbytes;
|
j+=startbytes;
|
||||||
|
|
||||||
if (offsetbytes == 5)
|
if (offsetbytes == 5)
|
||||||
sampleoffset -= 1000000000000ul;
|
sampleoffset -= 1000000000000;
|
||||||
if (startbytes == 5)
|
if (startbytes == 5)
|
||||||
start -= 1000000000000ul;
|
start -= 1000000000000;
|
||||||
|
|
||||||
std::string filename = string(name);
|
std::string filename = string(name);
|
||||||
wav_t f = {
|
wav_t f = {
|
||||||
|
|
@ -1873,8 +1873,8 @@ nocustom:
|
||||||
}
|
}
|
||||||
m+=8;
|
m+=8;
|
||||||
findex3 = ptfunxored[m] | (ptfunxored[m+1] << 8);
|
findex3 = ptfunxored[m] | (ptfunxored[m+1] << 8);
|
||||||
sampleoffset -= 1000000000000ul;
|
sampleoffset -= 1000000000000;
|
||||||
start -= 1000000000000ul;
|
start -= 1000000000000;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Find wav with correct findex
|
// Find wav with correct findex
|
||||||
|
|
@ -2031,9 +2031,9 @@ nocustom:
|
||||||
j+=startbytes;
|
j+=startbytes;
|
||||||
|
|
||||||
if (offsetbytes == 5)
|
if (offsetbytes == 5)
|
||||||
sampleoffset -= 1000000000000ul;
|
sampleoffset -= 1000000000000;
|
||||||
if (startbytes == 5)
|
if (startbytes == 5)
|
||||||
start -= 1000000000000ul;
|
start -= 1000000000000;
|
||||||
|
|
||||||
std::string filename = string(name);
|
std::string filename = string(name);
|
||||||
wav_t f = {
|
wav_t f = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue