From: Ben Pfaff Date: Mon, 18 Mar 2013 06:25:48 +0000 (-0700) Subject: SET: Fix format specifier in show_workspace(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fbuilds%2F20130319030509%2Fpspp;p=pspp SET: Fix format specifier in show_workspace(). GCC reported that %ld is not the correct format specifier for a size_t. --- diff --git a/src/language/utilities/set.q b/src/language/utilities/set.q index 14cc4be587..9a7e841707 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 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 @@ -876,7 +876,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 *