summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-09-06 18:04:23 +0800
committerLAN-TW <lantw44@gmail.com>2013-09-06 18:04:23 +0800
commitbc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc (patch)
tree39dde7def58b6a8048feed73b1a3d78f50267faa
parentb47ad993eeb563ae90c0bd9eba6e576b93f1de35 (diff)
downloadgsoc2013-libgnome-autoar-bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc.tar
gsoc2013-libgnome-autoar-bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc.tar.gz
gsoc2013-libgnome-autoar-bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc.tar.bz2
gsoc2013-libgnome-autoar-bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc.tar.lz
gsoc2013-libgnome-autoar-bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc.tar.xz
gsoc2013-libgnome-autoar-bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc.tar.zst
gsoc2013-libgnome-autoar-bc9f29cb8a6588a8e9d20cfbc563de4353a5c1fc.zip
Fix incorrect condition in set_completed_size and set_completed_files
-rw-r--r--gnome-autoar/autoar-create.c4
-rw-r--r--gnome-autoar/autoar-extract.c4
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;
}