Skip to content

Commit

Permalink
small format changes
Browse files Browse the repository at this point in the history
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@157 ea778897-0a13-0410-b9d1-a72fbfd435f5
  • Loading branch information
eht16 committed Jan 27, 2006
1 parent 6e2c511 commit 37ade08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/utils.c
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 37ade08

Please sign in to comment.