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

Unified Diff: runtime/bin/file.h

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/eventhandler_macos.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
===================================================================
--- runtime/bin/file.h (revision 31864)
+++ runtime/bin/file.h (working copy)
@@ -90,17 +90,17 @@
// Get the length of the file. Returns a negative value if the length cannot
// be determined (e.g. not seekable device).
- off64_t Length();
+ int64_t Length();
// Get the current position in the file.
// Returns a negative value if position cannot be determined.
- off64_t Position();
+ int64_t Position();
// Set the byte position in the file.
- bool SetPosition(off64_t position);
+ bool SetPosition(int64_t position);
// Truncate (or extend) the file to the given length in bytes.
- bool Truncate(off64_t length);
+ bool Truncate(int64_t length);
// Flush contents of file.
bool Flush();
@@ -127,7 +127,7 @@
static bool Rename(const char* old_path, const char* new_path);
static bool RenameLink(const char* old_path, const char* new_path);
static bool Copy(const char* old_path, const char* new_path);
- static off64_t LengthFromPath(const char* path);
+ static int64_t LengthFromPath(const char* path);
static void Stat(const char* path, int64_t* data);
static time_t LastModified(const char* path);
static char* LinkTarget(const char* pathname);
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698