pkgsrc/mail/evolution-data-server/patches/patch-ca
drochner 97a2b507bf update to 2.32.1
This switches to the gnome-2.32 release branch.
2010-11-24 20:19:43 +00:00

58 lines
2.7 KiB
Text

$NetBSD: patch-ca,v 1.2 2010/11/24 20:19:44 drochner Exp $
--- camel/camel-search-sql-sexp.c.orig 2010-09-21 06:21:00.000000000 +0000
+++ camel/camel-search-sql-sexp.c
@@ -176,7 +176,7 @@ eval_eq(struct _ESExp *f, gint argc, str
if (r1->type == ESEXP_RES_INT)
g_string_append_printf(str, "%d", r1->value.number);
else if (r1->type == ESEXP_RES_TIME)
- g_string_append_printf(str, "%ld", r1->value.time);
+ g_string_append_printf(str, "%lld", (long long)r1->value.time);
else if (r1->type == ESEXP_RES_STRING)
g_string_append_printf(str, "%s", r1->value.string);
@@ -194,7 +194,7 @@ eval_eq(struct _ESExp *f, gint argc, str
if (r2->type == ESEXP_RES_BOOL)
g_string_append_printf(str, "%d", r2->value.boolean);
else if (r2->type == ESEXP_RES_TIME)
- g_string_append_printf(str, "%ld", r2->value.time);
+ g_string_append_printf(str, "%lld", (long long)r2->value.time);
else if (r2->type == ESEXP_RES_STRING) {
gchar *tmp = g_strdup_printf("%c%s%c", ut ? '%':' ', r2->value.string, ut?'%':' ');
gchar *safe = get_db_safe_string(tmp);
@@ -229,7 +229,7 @@ eval_lt(struct _ESExp *f, gint argc, str
if (r1->type == ESEXP_RES_INT)
g_string_append_printf(str, "%d", r1->value.number);
else if (r1->type == ESEXP_RES_TIME)
- g_string_append_printf(str, "%ld", r1->value.time);
+ g_string_append_printf(str, "%lld", (long long)r1->value.time);
else if (r1->type == ESEXP_RES_STRING)
g_string_append_printf(str, "%s", r1->value.string);
@@ -239,7 +239,7 @@ eval_lt(struct _ESExp *f, gint argc, str
if (r2->type == ESEXP_RES_BOOL)
g_string_append_printf(str, "%d", r2->value.boolean);
else if (r2->type == ESEXP_RES_TIME)
- g_string_append_printf(str, "%ld", r2->value.time);
+ g_string_append_printf(str, "%lld", (long long)r2->value.time);
else if (r2->type == ESEXP_RES_STRING)
g_string_append_printf(str, "%s", r2->value.string);
e_sexp_result_free(f, r1);
@@ -268,7 +268,7 @@ eval_gt(struct _ESExp *f, gint argc, str
if (r1->type == ESEXP_RES_INT)
g_string_append_printf(str, "%d", r1->value.number);
else if (r1->type == ESEXP_RES_TIME)
- g_string_append_printf(str, "%ld", r1->value.time);
+ g_string_append_printf(str, "%lld", (long long)r1->value.time);
else if (r1->type == ESEXP_RES_STRING)
g_string_append_printf(str, "%s", r1->value.string);
@@ -278,7 +278,7 @@ eval_gt(struct _ESExp *f, gint argc, str
if (r2->type == ESEXP_RES_BOOL)
g_string_append_printf(str, "%d", r2->value.boolean);
else if (r2->type == ESEXP_RES_TIME)
- g_string_append_printf(str, "%ld", r2->value.time);
+ g_string_append_printf(str, "%lld", (long long)r2->value.time);
else if (r2->type == ESEXP_RES_STRING)
g_string_append_printf(str, "%s", r2->value.string);
e_sexp_result_free(f, r1);