projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compiler warnings
[pspp]
/
src
/
ui
/
gui
/
spreadsheet-test.c
diff --git
a/src/ui/gui/spreadsheet-test.c
b/src/ui/gui/spreadsheet-test.c
index 8c96ec96a886607beedc0a010be7837dc9e17ebb..b70227008331377db9dd626fbd5582bbf4164cdd 100644
(file)
--- a/
src/ui/gui/spreadsheet-test.c
+++ b/
src/ui/gui/spreadsheet-test.c
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2013 Free Software Foundation
+ Copyright (C) 2013
, 2014
Free Software Foundation
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
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
@@
-19,6
+19,7
@@
#include <config.h>
#include <config.h>
+#include <float.h>
#include <gtk/gtk.h>
#include "psppire-spreadsheet-model.h"
#include <gtk/gtk.h>
#include "psppire-spreadsheet-model.h"
@@
-78,7
+79,7
@@
on_clicked (GtkButton *button, struct xxx *stuff)
const int width = caseproto_get_width (proto, i);
const union value *val = case_data_idx (c, i);
if (0 == width)
const int width = caseproto_get_width (proto, i);
const union value *val = case_data_idx (c, i);
if (0 == width)
- printf ("%
g "
, val->f);
+ printf ("%
.*g ", DBL_DIG + 1
, val->f);
else
{
char *ss = xzalloc (width + 1);
else
{
char *ss = xzalloc (width + 1);
@@
-191,7
+192,7
@@
main (int argc, char *argv[] )
gtk_main ();
gtk_main ();
- spreadsheet_
destroy
(stuff.sp);
+ spreadsheet_
unref
(stuff.sp);
return 0;
}
return 0;
}