MailPreferences: fixes 64 bit warnings
This commit is contained in:
parent
006e76a155
commit
4c1efaad9c
@ -815,15 +815,15 @@ ConfigWindow::_SetToGeneralSettings(BMailSettings *settings)
|
||||
int timeIndex = 0;
|
||||
if (interval >= 60) {
|
||||
timeIndex = 1;
|
||||
sprintf(text, "%ld", interval / (60));
|
||||
sprintf(text, "%" B_PRIdTIME, interval / (60));
|
||||
}
|
||||
if (interval >= (60*60)) {
|
||||
timeIndex = 2;
|
||||
sprintf(text, "%ld", interval / (60*60));
|
||||
sprintf(text, "%" B_PRIdTIME, interval / (60*60));
|
||||
}
|
||||
if (interval >= (60*60*24)) {
|
||||
timeIndex = 3;
|
||||
sprintf(text, "%ld", interval / (60*60*24));
|
||||
sprintf(text, "%" B_PRIdTIME, interval / (60*60*24));
|
||||
}
|
||||
fIntervalControl->SetText(text);
|
||||
|
||||
|
@ -106,7 +106,7 @@ BRawNetBuffer::ReadString(BString& string)
|
||||
status_t
|
||||
BRawNetBuffer::SkipReading(off_t skip)
|
||||
{
|
||||
if (fReadPosition + skip > fBuffer.BufferLength())
|
||||
if (fReadPosition + skip > (off_t)fBuffer.BufferLength())
|
||||
return B_ERROR;
|
||||
fReadPosition += skip;
|
||||
return B_OK;
|
||||
@ -125,7 +125,7 @@ BRawNetBuffer::_Init(const void* buf, size_t size)
|
||||
ssize_t
|
||||
BRawNetBuffer::_ReadStringAt(BString& string, off_t pos)
|
||||
{
|
||||
if (pos >= fBuffer.BufferLength())
|
||||
if (pos >= (off_t)fBuffer.BufferLength())
|
||||
return -1;
|
||||
|
||||
ssize_t bytesRead = 0;
|
||||
@ -133,7 +133,7 @@ BRawNetBuffer::_ReadStringAt(BString& string, off_t pos)
|
||||
buffer = &buffer[pos];
|
||||
// if the string is compressed we have to follow the links to the
|
||||
// sub strings
|
||||
while (pos < fBuffer.BufferLength() && *buffer != 0) {
|
||||
while (pos < (off_t)fBuffer.BufferLength() && *buffer != 0) {
|
||||
if (uint8(*buffer) == 192) {
|
||||
// found a pointer mark
|
||||
buffer++;
|
||||
|
Loading…
Reference in New Issue
Block a user