[gom] gom: Fix thinko in is_new_in_version()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] gom: Fix thinko in is_new_in_version()
- Date: Sun, 21 Sep 2014 17:32:06 +0000 (UTC)
commit 10c349e70b509db2679e17636db2ac302e9e969f
Author: Bastien Nocera <hadess hadess net>
Date: Sun Sep 21 18:50:58 2014 +0200
gom: Fix thinko in is_new_in_version()
Don't really want to be doing arithmetic on a pointer.
gom/gom-command-builder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gom/gom-command-builder.c b/gom/gom-command-builder.c
index 20bbfe9..393aa13 100644
--- a/gom/gom-command-builder.c
+++ b/gom/gom-command-builder.c
@@ -119,7 +119,7 @@ is_new_in_version (GParamSpec *pspec,
/* This is a bit ugly, but this allows us to consider
* an unset value to be new in version 1. Version 0
* is for "pre-GOM" SQLite usage. */
- return GPOINTER_TO_INT(g_param_spec_get_qdata(pspec, GOM_RESOURCE_NEW_IN_VERSION) + 1) == version;
+ return (GPOINTER_TO_INT(g_param_spec_get_qdata(pspec, GOM_RESOURCE_NEW_IN_VERSION)) + 1) == version;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]