summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@src.gnome.org>2016-08-04 20:20:15 +0300
committerErnestas Kulik <ernestask@src.gnome.org>2016-08-05 13:01:42 +0300
commite3025d46e3c94b575928c38cef61ce46347e74c2 (patch)
tree0cc3d245a1074defb06c99cd36ba525c5c702f2b /src
parentd2bf6f76a02cc9f77bfbe0a081aadfe45a86d174 (diff)
downloadnautilus-e3025d46e3c94b575928c38cef61ce46347e74c2.tar.gz
file-undo-operations: use ABS macro instead of abs()
trash_retrieve_files_to_restore_thread() calls abs() with an argument of type long, whereas abs() accepts ints. This commit fixes that by replacing the call with the ABS macro, which is type-agnostic. https://bugzilla.gnome.org/show_bug.cgi?id=769526
Diffstat (limited to 'src')
-rw-r--r--src/nautilus-file-undo-operations.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nautilus-file-undo-operations.c b/src/nautilus-file-undo-operations.c
index 82d7aeec3..17b8c1dc6 100644
--- a/src/nautilus-file-undo-operations.c
+++ b/src/nautilus-file-undo-operations.c
@@ -1147,7 +1147,7 @@ trash_retrieve_files_to_restore_thread (GTask *task,
g_date_time_unref (date);
}
- if (abs (orig_trash_time - trash_time) <= TRASH_TIME_EPSILON) {
+ if (ABS (orig_trash_time - trash_time) <= TRASH_TIME_EPSILON) {
/* File in the trash */
item = g_file_get_child (trash, g_file_info_get_name (info));
g_hash_table_insert (to_restore, item, g_object_ref (origfile));