[almanah] Fix a signed/unsigned integer comparison
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [almanah] Fix a signed/unsigned integer comparison
- Date: Wed, 21 Apr 2010 20:50:55 +0000 (UTC)
commit 3543d868138ac92724bfdf35a8302e3d7f75ef51
Author: Philip Withnall <philip tecnocode co uk>
Date: Wed Apr 21 21:46:16 2010 +0100
Fix a signed/unsigned integer comparison
src/printing.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/printing.c b/src/printing.c
index 13d8e82..5c38e4b 100644
--- a/src/printing.c
+++ b/src/printing.c
@@ -311,7 +311,7 @@ print_entry (GtkPrintOperation *operation, GtkPrintContext *context, AlmanahPrin
g_object_unref (entry);
/* Check we're not orphaning things */
- entry_line = pango_layout_get_line_readonly (entry_layout, MIN (pango_layout_get_line_count (entry_layout) - 1, almanah_operation->current_line + MAX_ORPHANS));
+ entry_line = pango_layout_get_line_readonly (entry_layout, MIN ((guint) pango_layout_get_line_count (entry_layout) - 1, almanah_operation->current_line + MAX_ORPHANS));
pango_layout_line_get_pixel_extents (entry_line, NULL, &logical_extents);
line_height = pango_layout_get_spacing (entry_layout) / PANGO_SCALE + (gint) (almanah_operation->line_spacing * ((gdouble) logical_extents.height));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]