Author: turnstep
Date: Sun Jan  6 21:44:34 2008
New Revision: 10488

Modified:
   DBD-Pg/trunk/Changes
   DBD-Pg/trunk/dbdimp.c

Log:
Switch from pow to powf to support AIX compiler issue. CPAN bug #24579


Modified: DBD-Pg/trunk/Changes
==============================================================================
--- DBD-Pg/trunk/Changes        (original)
+++ DBD-Pg/trunk/Changes        Sun Jan  6 21:44:34 2008
@@ -1,6 +1,8 @@
 ('GSM' is Greg Sabino Mullane, [EMAIL PROTECTED])
 
 2.0.0
+       - Switch from pow to powf to support AIX compiler issue.
+               (CPAN bug #24579) [GSM]
        - Use adbin, not adsrc, when figuring out the sequence name for the 
                last_insert_id() method. This allows the function to work 
properly 
                if the sequence name is changed. Not that {pg_cache=>0} should 
be 

Modified: DBD-Pg/trunk/dbdimp.c
==============================================================================
--- DBD-Pg/trunk/dbdimp.c       (original)
+++ DBD-Pg/trunk/dbdimp.c       Sun Jan  6 21:44:34 2008
@@ -1851,7 +1851,7 @@
                                continue;
                        /* The parameter itself: dollar sign plus digit(s) */
                        for (x=1; x<7; x++) {
-                               if (currseg->placeholder < 
pow((double)10,(double)x))
+                               if (currseg->placeholder < 
powf((float)10,(float)x))
                                        break;
                        }
                        if (x>=7)
@@ -2732,7 +2732,7 @@
                                        continue;
                                /* The parameter itself: dollar sign plus 
digit(s) */
                                for (x=1; x<7; x++) {
-                                       if (currseg->placeholder < 
pow((double)10,(double)x))
+                                       if (currseg->placeholder < 
powf((float)10,(float)x))
                                                break;
                                }
                                if (x>=7)

Reply via email to