From 014e889fe0b99233911f25b911e8cb31cacdfc34 Mon Sep 17 00:00:00 2001
From: sam <sam@92316355-f0b4-4df1-b90c-862c8a59935f>
Date: Mon, 25 May 2009 07:05:13 +0000
Subject: [PATCH] Allow for non-integer quality values in img2twit.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3525 92316355-f0b4-4df1-b90c-862c8a59935f
---
 examples/img2twit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/img2twit.cpp b/examples/img2twit.cpp
index 599c9b2..0afdc77 100644
--- a/examples/img2twit.cpp
+++ b/examples/img2twit.cpp
@@ -832,7 +832,7 @@ int main(int argc, char *argv[])
             }
             break;
         case 'q':
-            ITERATIONS_PER_POINT = 10 * atoi(myoptarg);
+            ITERATIONS_PER_POINT = 10 * atof(myoptarg);
             if(ITERATIONS_PER_POINT < 0)
                 ITERATIONS_PER_POINT = 0;
             else if(ITERATIONS_PER_POINT > 100)