[libgda] gda_numeric_set_double(): Do not reject a 0 value.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] gda_numeric_set_double(): Do not reject a 0 value.
- Date: Fri, 11 Nov 2011 22:34:21 +0000 (UTC)
commit b7db38371156cd88babaabc4335ef474e877b125
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 11 23:34:16 2011 +0100
gda_numeric_set_double(): Do not reject a 0 value.
libgda/gda-value.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/libgda/gda-value.c b/libgda/gda-value.c
index bca07a5..44c6f65 100644
--- a/libgda/gda-value.c
+++ b/libgda/gda-value.c
@@ -908,7 +908,6 @@ void
gda_numeric_set_double (GdaNumeric *numeric, gdouble number)
{
g_return_if_fail (numeric);
- g_return_if_fail (number);
if (numeric->number)
g_free (numeric->number);
numeric->number = g_strdup_printf ("%lf", number);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]