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.
This commit is contained in:
Martin Wehner 2006-02-21 22:37:22 +00:00 committed by Martin Wehner
parent 1dff2b51a7
commit d08b1966c7
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
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.
2006-02-21 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-error-reporting.[ch]:

View file

@ -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;
}