From 546590abfc8b8f2d2b54bbceb6a4f29b7cd7d6c4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 17 Mar 2013 23:25:48 -0700 Subject: [PATCH] SET: Fix format specifier in show_workspace(). GCC reported that %ld is not the correct format specifier for a size_t. --- src/language/utilities/set.q | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 * -- 2.30.2