[gnome-autoar] Fix incorrect condition in set_completed_size and set_completed_files
- From: Ting-Wei Lan <lantw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-autoar] Fix incorrect condition in set_completed_size and set_completed_files
- Date: Fri, 6 Sep 2013 10:22:34 +0000 (UTC)
commit bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc
Author: Ting-Wei Lan <lantw44 gmail com>
Date: Fri Sep 6 18:04:23 2013 +0800
Fix incorrect condition in set_completed_size and set_completed_files
gnome-autoar/autoar-create.c | 4 ++--
gnome-autoar/autoar-extract.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-autoar/autoar-create.c b/gnome-autoar/autoar-create.c
index cca1872..3c178bd 100644
--- a/gnome-autoar/autoar-create.c
+++ b/gnome-autoar/autoar-create.c
@@ -286,7 +286,7 @@ autoar_create_set_completed_size (AutoarCreate *arcreate,
guint64 completed_size)
{
g_return_if_fail (AUTOAR_IS_CREATE (arcreate));
- g_return_if_fail (completed_size <= arcreate->priv->completed_size);
+ g_return_if_fail (completed_size >= arcreate->priv->completed_size);
arcreate->priv->completed_size = completed_size;
}
@@ -303,7 +303,7 @@ autoar_create_set_completed_files (AutoarCreate *arcreate,
guint completed_files)
{
g_return_if_fail (AUTOAR_IS_CREATE (arcreate));
- g_return_if_fail (completed_files <= arcreate->priv->completed_files);
+ g_return_if_fail (completed_files >= arcreate->priv->completed_files);
arcreate->priv->completed_files = completed_files;
}
diff --git a/gnome-autoar/autoar-extract.c b/gnome-autoar/autoar-extract.c
index 9de45a6..871307a 100644
--- a/gnome-autoar/autoar-extract.c
+++ b/gnome-autoar/autoar-extract.c
@@ -332,7 +332,7 @@ autoar_extract_set_completed_size (AutoarExtract *arextract,
guint64 completed_size)
{
g_return_if_fail (AUTOAR_IS_EXTRACT (arextract));
- g_return_if_fail (completed_size <= arextract->priv->completed_size);
+ g_return_if_fail (completed_size >= arextract->priv->completed_size);
arextract->priv->completed_size = completed_size;
}
@@ -349,7 +349,7 @@ autoar_extract_set_completed_files (AutoarExtract *arextract,
guint completed_files)
{
g_return_if_fail (AUTOAR_IS_EXTRACT (arextract));
- g_return_if_fail (completed_files <= arextract->priv->completed_files);
+ g_return_if_fail (completed_files >= arextract->priv->completed_files);
arextract->priv->completed_files = completed_files;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]