]> diplodocus.org Git - nmh/commitdiff
Replaced strtod() with strtof().
authorDavid Levine <levinedl@acm.org>
Thu, 6 Oct 2016 16:45:52 +0000 (12:45 -0400)
committerDavid Levine <levinedl@acm.org>
Thu, 6 Oct 2016 16:45:52 +0000 (12:45 -0400)
sbr/utils.c

index 1b1b47386749dc993798f7986cb5de36ab17035e..cf920a39e457e9f4aa50b55f7c2ca3b83df6a236 100644 (file)
@@ -429,7 +429,7 @@ nmh_version_changed (int older) {
     if (older) {
         /* Convert the version strings to floats and compare them.  This will
            break for versions with multiple decimal points, etc. */
     if (older) {
         /* Convert the version strings to floats and compare them.  This will
            break for versions with multiple decimal points, etc. */
-        const float current_version = strtod (VERSION, NULL);
+        const float current_version = strtof (VERSION, NULL);
         const float old_version =
             context_version  &&  strncmp (context_version, "nmh-", 4) == 0
             ?  strtof (context_version + 4, NULL)
         const float old_version =
             context_version  &&  strncmp (context_version, "nmh-", 4) == 0
             ?  strtof (context_version + 4, NULL)