summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-04-19 18:32:33 +0200
committerRobin Gareus <robin@gareus.org>2018-04-19 18:32:33 +0200
commitbaba08c264a1df44aacb1cebaee3c7c414123a23 (patch)
treecd3b4e674eb42909ce638bbc53b2ab8a2cc5e7ea
parente1f94bbb4a1c2add7402d806f337d072fe4163e9 (diff)
amend e1f94bbb4a (32/64bit int64 compat)
-rw-r--r--libs/ptformat/ptfformat.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/libs/ptformat/ptfformat.cc b/libs/ptformat/ptfformat.cc
index 6fc4b115e5..38c8ddc758 100644
--- a/libs/ptformat/ptfformat.cc
+++ b/libs/ptformat/ptfformat.cc
@@ -874,7 +874,7 @@ PTFFormat::parsemidi(void) {
midiregionname,
regionnumber++,
//(int64_t)mc.zero,
- (int64_t)0xe8d4a51000ull,
+ (int64_t)0xe8d4a51000ULL,
(int64_t)(0),
//(int64_t)(max_pos*sessionrate*60/(960000*120)),
(int64_t)mc.maxlen,
@@ -1076,7 +1076,7 @@ PTFFormat::parsemidi12(void) {
midiregionname,
regionnumber++,
//(int64_t)mc.zero,
- (int64_t)0xe8d4a51000ull,
+ (int64_t)0xe8d4a51000ULL,
(int64_t)(0),
//(int64_t)(max_pos*sessionrate*60/(960000*120)),
(int64_t)mc.maxlen,
@@ -1760,9 +1760,9 @@ nocustom:
j+=startbytes;
if (offsetbytes == 5)
- sampleoffset -= 1000000000000;
+ sampleoffset -= 1000000000000ULL;
if (startbytes == 5)
- start -= 1000000000000;
+ start -= 1000000000000ULL;
std::string filename = string(name);
wav_t f = {
@@ -1873,8 +1873,8 @@ nocustom:
}
m+=8;
findex3 = ptfunxored[m] | (ptfunxored[m+1] << 8);
- sampleoffset -= 1000000000000;
- start -= 1000000000000;
+ sampleoffset -= 1000000000000ULL;
+ start -= 1000000000000ULL;
/*
// Find wav with correct findex
@@ -2031,9 +2031,9 @@ nocustom:
j+=startbytes;
if (offsetbytes == 5)
- sampleoffset -= 1000000000000;
+ sampleoffset -= 1000000000000ULL;
if (startbytes == 5)
- start -= 1000000000000;
+ start -= 1000000000000ULL;
std::string filename = string(name);
wav_t f = {