Mercurial > geeqie
changeset 1811:f405ec9b696b default tip
Some small logic mistakes
Use boolean operators for booleans and bitwise otherwise only.
author | mow |
---|---|
date | Mon, 10 May 2010 11:33:13 +0000 |
parents | c416d099a3dc |
children | |
files | src/view_file_icon.c src/view_file_list.c |
diffstat | 2 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/view_file_icon.c Mon May 10 11:32:56 2010 +0000 +++ b/src/view_file_icon.c Mon May 10 11:33:13 2010 +0000 @@ -1014,11 +1014,11 @@ { case MTS_MODE_SET: selected = mark_val; break; - case MTS_MODE_OR: selected = mark_val | selected; + case MTS_MODE_OR: selected = mark_val || selected; break; - case MTS_MODE_AND: selected = mark_val & selected; + case MTS_MODE_AND: selected = mark_val && selected; break; - case MTS_MODE_MINUS: selected = !mark_val & selected; + case MTS_MODE_MINUS: selected = !mark_val && selected; break; }
--- a/src/view_file_list.c Mon May 10 11:32:56 2010 +0000 +++ b/src/view_file_list.c Mon May 10 11:33:13 2010 +0000 @@ -1610,11 +1610,11 @@ { case MTS_MODE_SET: selected = mark_val; break; - case MTS_MODE_OR: selected = mark_val | selected; + case MTS_MODE_OR: selected = mark_val || selected; break; - case MTS_MODE_AND: selected = mark_val & selected; + case MTS_MODE_AND: selected = mark_val && selected; break; - case MTS_MODE_MINUS: selected = !mark_val & selected; + case MTS_MODE_MINUS: selected = !mark_val && selected; break; }