From 37ade083466067037f45d283c083a49a40cf6651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Fri, 27 Jan 2006 19:09:08 +0000 Subject: [PATCH] small format changes git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@157 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index fa0aab05..1199f2a8 100644 --- a/src/utils.c +++ b/src/utils.c @@ -858,7 +858,7 @@ gchar *utils_convert_to_utf8(const gchar *buffer, gsize size, gchar **used_encod if (locale_charset != NULL) { /* if (strcmp(locale_charset, "ANSI_X3.4-1968") == 0) - { /// TODO very dirty quick hack, if LC=C then all oes wrong + { /// TODO very dirty quick hack, if LC=C then all goes wrong locale_encoding = encoding_get_from_charset("ISO-8859-15"); } else @@ -2076,6 +2076,7 @@ gint utils_get_int_from_hexcolor(const gchar *hex) { size_t len; guint r, g, b; + gint bits; hex++; len = strlen(hex); @@ -2088,7 +2089,7 @@ gint utils_get_int_from_hexcolor(const gchar *hex) ! utils_is_hex(hex + len * 2, len, &b)) return FALSE; - gint bits = len * 4; + bits = len * 4; r <<= 8 - bits; g <<= 8 - bits; b <<= 8 - bits;