diff options
author | Martin Wehner <martin.wehner@gmail.com> | 2006-02-21 22:37:22 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2006-02-21 22:37:22 +0000 |
commit | d08b1966c79f281eaa9ee4080339b1938ff4d788 (patch) | |
tree | a7893e7361a422e515099e4a6d5eefc3f74f20f9 /libnautilus-private | |
parent | 1dff2b51a74f7d8db5e85ef280441e731a25f138 (diff) | |
download | nautilus-d08b1966c79f281eaa9ee4080339b1938ff4d788.tar.gz |
Add a cast to fix build for platforms where GnomeVFSFileSize is not
2006-02-21 Martin Wehner <martin.wehner@gmail.com>
* libnautilus-private/nautilus-file.c:
(nautilus_file_get_size_as_string_with_real_size):
Add a cast to fix build for platforms where GnomeVFSFileSize
is not defined as long long (e.g. AMD64). Fixes bug #331636.
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-file.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c index aa9157701..e0226bf03 100644 --- a/libnautilus-private/nautilus-file.c +++ b/libnautilus-private/nautilus-file.c @@ -4351,9 +4351,11 @@ nautilus_file_get_size_as_string_with_real_size (NautilusFile *file) if (nautilus_file_info_missing (file, GNOME_VFS_FILE_INFO_FIELDS_SIZE)) { return NULL; } - + formated = gnome_vfs_format_file_size_for_display (file->details->info->size); - formated_plus_real = g_strdup_printf (_("%s (%lld bytes)"), formated, file->details->info->size); + /* FIXME: We should use GNOME_VFS_SIZE_FORMAT_STR instead of the explicit format here. */ + formated_plus_real = g_strdup_printf (_("%s (%lld bytes)"), formated, + (long long) file->details->info->size); g_free (formated); return formated_plus_real; } |