]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
atof returns double not float?
authorMichael Jerris <mike@jerris.com>
Thu, 7 Jun 2007 03:36:03 +0000 (03:36 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 7 Jun 2007 03:36:03 +0000 (03:36 +0000)
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@233 a93c3328-9c30-0410-af19-c9cd2b2d52af

libs/freetdm/src/libteletone_generate.c

index 5c46b1afd16b7907683e671722be9e53abd04edc..bb904b2d68571d39d79cb9ad58670d25054b3a2d 100644 (file)
@@ -355,7 +355,7 @@ int teletone_run(teletone_generation_session_t *ts, char *cmd)
                                        break;
                                case 'v':
                                        {
-                                               float vol = atof(cur + 2);
+                                               float vol = (float)atof(cur + 2);
                                                if (vol <= TELETONE_VOL_DB_MAX && vol >= TELETONE_VOL_DB_MIN) {
                                                        ts->volume = vol;
                                                }
@@ -370,7 +370,7 @@ int teletone_run(teletone_generation_session_t *ts, char *cmd)
                                        ts->decay_direction = 1;
                                        break;
                                case '+':
-                                       ts->decay_factor = atof(cur + 2);
+                                       ts->decay_factor = (float)atof(cur + 2);
                                        break;
                                case 'w':
                                        ts->wait = atoi(cur + 2) * (ts->rate / 1000);