X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Futilities%2Fset.q;h=50ddd9443ed8dc92d956068e8d3d3f07b2e09fc1;hb=8d6ff8a6bd25b184474a117c8332275b5add2d2b;hp=14cc4be5873daa66edbd3428f8ffff24f29c11eb;hpb=68d837b6f9edf4151a8df34f65123b10b35612ea;p=pspp diff --git a/src/language/utilities/set.q b/src/language/utilities/set.q index 14cc4be587..50ddd9443e 100644 --- a/src/language/utilities/set.q +++ b/src/language/utilities/set.q @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -16,6 +16,7 @@ #include +#include #include #include #include @@ -624,7 +625,7 @@ show_blanks (const struct dataset *ds UNUSED) { return (settings_get_blanks () == SYSMIS ? xstrdup ("SYSMIS") - : xasprintf ("%g", settings_get_blanks ())); + : xasprintf ("%.*g", DBL_DIG + 1, settings_get_blanks ())); } static void @@ -876,7 +877,7 @@ static char * show_workspace (const struct dataset *ds UNUSED) { size_t ws = settings_get_workspace () / 1024L; - return xasprintf ("%ld", ws); + return xasprintf ("%zu", ws); } static char *