BUG: none TEST: Build GoogleTalk git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@632 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
a2d5da4831
commit
b5b8051a23
1 changed files with 8 additions and 8 deletions
|
@ -241,10 +241,10 @@ bool MinidumpFileWriter::Copy(MDRVA position, const void *src, ssize_t size) {
|
||||||
|
|
||||||
// Seek and write the data
|
// Seek and write the data
|
||||||
#if __linux__
|
#if __linux__
|
||||||
if (sys_lseek(file_, position, SEEK_SET) == position) {
|
if (sys_lseek(file_, position, SEEK_SET) == static_cast<off_t>(position)) {
|
||||||
if (sys_write(file_, src, size) == size) {
|
if (sys_write(file_, src, size) == size) {
|
||||||
#else
|
#else
|
||||||
if (lseek(file_, position, SEEK_SET) == position) {
|
if (lseek(file_, position, SEEK_SET) == static_cast<off_t>(position)) {
|
||||||
if (write(file_, src, size) == size) {
|
if (write(file_, src, size) == size) {
|
||||||
#endif
|
#endif
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue