Cortex: fixes 64 bit warnings

This commit is contained in:
Jérôme Duval 2013-05-10 20:59:13 +02:00
parent 5f3e33091c
commit e1a77daa69
2 changed files with 8 additions and 8 deletions

View File

@ -295,7 +295,7 @@ uint32 AudioBuffer::findMin(uint32 fromFrame, uint32 frameCount,
if(pAt) {
// reset pAt
for(n = 0; n < channels; n++)
pAt[n] = ULONG_MAX;
pAt[n] = UINT32_MAX;
}
// find minimum for each channel
@ -348,7 +348,7 @@ uint32 AudioBuffer::findMax(uint32 fromFrame, uint32 frameCount,
if(pAt) {
// reset pAt
for(n = 0; n < channels; n++)
pAt[n] = ULONG_MAX;
pAt[n] = UINT32_MAX;
}
// find minimum for each channel
@ -400,7 +400,7 @@ uint32 AudioBuffer::findPeaks(uint32 fromFrame, uint32 frameCount,
if(pAt) {
// reset pAt
for(n = 0; n < channels; n++)
pAt[n] = ULONG_MAX;
pAt[n] = UINT32_MAX;
}
// find peaks in both directions

View File

@ -82,7 +82,7 @@ MediaNodeControlApp::MediaNodeControlApp(
if(err < B_OK) {
char buffer[512];
sprintf(buffer,
"MediaNodeControlApp: couldn't find node (%ld):\n%s\n",
"MediaNodeControlApp: couldn't find node (%" B_PRId32 "):\n%s\n",
nodeID, strerror(err));
BAlert* alert = new BAlert("error", buffer, "OK");
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
@ -96,8 +96,8 @@ MediaNodeControlApp::MediaNodeControlApp(
if(err < B_OK) {
char buffer[512];
sprintf(buffer,
"MediaNodeControlApp: couldn't get node info (%ld):\n%s\n",
nodeID, strerror(err));
"MediaNodeControlApp: couldn't get node info (%" B_PRId32
"):\n%s\n", nodeID, strerror(err));
BAlert* alert = new BAlert("error", buffer, "OK");
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go();
@ -113,8 +113,8 @@ MediaNodeControlApp::MediaNodeControlApp(
if(err < B_OK) {
char buffer[512];
sprintf(buffer,
"MediaNodeControlApp: no parameters for node (%ld):\n%s\n",
nodeID, strerror(err));
"MediaNodeControlApp: no parameters for node (%" B_PRId32
"):\n%s\n", nodeID, strerror(err));
BAlert* alert = new BAlert("error", buffer, "OK");
alert->SetFlags(alert->Flags() | B_CLOSE_ON_ESCAPE);
alert->Go();