summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-18 09:43:44 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-18 09:43:58 +0100
commitb5d094fa356040dfda2a06bdcc5a26226e0cd05a (patch)
tree6e4999dd443f4e94ba2a6fac22622e293fc39e12 /source/helper.c
parent253724c85c45cced52fa42d40ec897c8f4a6e832 (diff)
Update theme specifcation documentation.
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/helper.c b/source/helper.c
index 56afdc7c..696cf41e 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -659,17 +659,17 @@ char *rofi_expand_path ( const char *input )
unsigned int levenshtein ( const char *needle, const glong needlelen, const char *haystack, const glong haystacklen )
{
unsigned int column[needlelen + 1];
- for ( unsigned int y = 0; y <= needlelen; y++ ) {
+ for ( glong y = 0; y <= needlelen; y++ ) {
column[y] = y;
}
- for ( unsigned int x = 1; x <= haystacklen; x++ ) {
+ for ( glong x = 1; x <= haystacklen; x++ ) {
const char *needles = needle;
column[0] = x;
gunichar haystackc = g_utf8_get_char ( haystack );
if ( !config.case_sensitive ) {
haystackc = g_unichar_tolower ( haystackc );
}
- for ( unsigned int y = 1, lastdiag = x - 1; y <= needlelen; y++ ) {
+ for ( glong y = 1, lastdiag = x - 1; y <= needlelen; y++ ) {
gunichar needlec = g_utf8_get_char ( needles );
if ( !config.case_sensitive ) {
needlec = g_unichar_tolower ( needlec );