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