]> diplodocus.org Git - nmh/blobdiff - sbr/utils.c
Fixed test negations in test-version-check to work with make distcheck.
[nmh] / 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. */
-        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)