Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: runtime/bin/file_win.cc

Issue 139043003: - Address warnings about 64-bit to 32-bit conversions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file_win.cc
===================================================================
--- runtime/bin/file_win.cc (revision 31864)
+++ runtime/bin/file_win.cc (working copy)
@@ -72,19 +72,19 @@
}
-off64_t File::Position() {
+int64_t File::Position() {
ASSERT(handle_->fd() >= 0);
return _lseeki64(handle_->fd(), 0, SEEK_CUR);
}
-bool File::SetPosition(off64_t position) {
+bool File::SetPosition(int64_t position) {
ASSERT(handle_->fd() >= 0);
return _lseeki64(handle_->fd(), position, SEEK_SET) >= 0;
}
-bool File::Truncate(off64_t length) {
+bool File::Truncate(int64_t length) {
ASSERT(handle_->fd() >= 0);
return _chsize_s(handle_->fd(), length) == 0;
}
@@ -96,7 +96,7 @@
}
-off64_t File::Length() {
+int64_t File::Length() {
ASSERT(handle_->fd() >= 0);
struct __stat64 st;
if (_fstat64(handle_->fd(), &st) == 0) {
@@ -121,7 +121,7 @@
return NULL;
}
if (((mode & kWrite) != 0) && ((mode & kTruncate) == 0)) {
- off64_t position = _lseeki64(fd, 0, SEEK_END);
+ int64_t position = _lseeki64(fd, 0, SEEK_END);
if (position < 0) {
return NULL;
}
@@ -343,7 +343,7 @@
}
-off64_t File::LengthFromPath(const char* name) {
+int64_t File::LengthFromPath(const char* name) {
struct __stat64 st;
const wchar_t* system_name = StringUtils::Utf8ToWide(name);
int stat_status = _wstat64(system_name, &st);
« no previous file with comments | « runtime/bin/file_macos.cc ('k') | runtime/bin/filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698