SET: Fix format specifier in show_workspace(). 20130318075540/pspp 20130319030509/pspp 20130320030504/pspp 20130321030507/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 18 Mar 2013 06:25:48 +0000 (23:25 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 18 Mar 2013 06:25:48 +0000 (23:25 -0700)
GCC reported that %ld is not the correct format specifier for a size_t.

src/language/utilities/set.q

index 14cc4be5873daa66edbd3428f8ffff24f29c11eb..9a7e841707f535076bf1ad0126f454dd17aa1ba8 100644 (file)
@@ -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 *