mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Remove CEF-specific integer and char16 typedef's (see #3507)
This commit is contained in:
@@ -27,7 +27,7 @@ BytesWriteHandler::~BytesWriteHandler() {
|
||||
size_t BytesWriteHandler::Write(const void* ptr, size_t size, size_t n) {
|
||||
base::AutoLock lock_scope(lock_);
|
||||
size_t rv;
|
||||
if (offset_ + static_cast<int64>(size * n) >= datasize_ &&
|
||||
if (offset_ + static_cast<int64_t>(size * n) >= datasize_ &&
|
||||
Grow(size * n) == 0) {
|
||||
rv = 0;
|
||||
} else {
|
||||
@@ -39,7 +39,7 @@ size_t BytesWriteHandler::Write(const void* ptr, size_t size, size_t n) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
int BytesWriteHandler::Seek(int64 offset, int whence) {
|
||||
int BytesWriteHandler::Seek(int64_t offset, int whence) {
|
||||
int rv = -1L;
|
||||
base::AutoLock lock_scope(lock_);
|
||||
switch (whence) {
|
||||
@@ -51,7 +51,7 @@ int BytesWriteHandler::Seek(int64 offset, int whence) {
|
||||
rv = 0;
|
||||
break;
|
||||
case SEEK_END: {
|
||||
int64 offset_abs = std::abs(offset);
|
||||
int64_t offset_abs = std::abs(offset);
|
||||
if (offset_abs > datasize_) {
|
||||
break;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ int BytesWriteHandler::Seek(int64 offset, int whence) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
int64 BytesWriteHandler::Tell() {
|
||||
int64_t BytesWriteHandler::Tell() {
|
||||
base::AutoLock lock_scope(lock_);
|
||||
return offset_;
|
||||
}
|
||||
|
Reference in New Issue
Block a user