aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-02 05:42:31 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-02 05:42:31 +1000
commit4ffd2afccdb49b333ae8ab574884737f3984c676 (patch)
tree094f3aeca0afe9297137af51aa1bf513cc134e2b /history.c
parentec58ffa641b8c68a6bd8cdecfcdda107234b0674 (diff)
Fix some minor 64-bit uncleanlieness - thanks to James Anthill
darcs-hash:20060601194231-ac50b-a6b9b94379ba1d5bb6c61f7fad4652c8f748b25f.gz
Diffstat (limited to 'history.c')
-rw-r--r--history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/history.c b/history.c
index daf1a18f..f47d983c 100644
--- a/history.c
+++ b/history.c
@@ -482,7 +482,7 @@ static int history_test( const wchar_t *needle, const wchar_t *haystack )
/*
return wcsncmp( haystack, needle, wcslen(needle) )==0;
*/
- return (int)wcsstr( haystack, needle );
+ return !!wcsstr( haystack, needle );
}
const wchar_t *history_prev_match( const wchar_t *str )