From cf01282cf1da6fd444544ac184e9b6bbec611cf0 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 28 Jan 2008 15:32:24 +0000 Subject: [PATCH] Monotone-Parent: 50638763e49bc1757ecbfcb595c2bf8e94368094 Monotone-Revision: d0c554ad8f362480a34c3dff6694322c1a5fb2c9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-01-28T15:32:24 Monotone-Branch: ca.inverse.sogo --- UI/Scheduler/UIxComponentEditor.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index 789f21f7b..1c5ab268d 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -1370,11 +1370,9 @@ RANGE(2); v = [[self repeat2] componentsSeparatedByString: @","]; c = [v count]; mask = 0; - + while (c--) - { - mask |= (unsigned int)exp2([[v objectAtIndex: c] intValue]-1); - } + mask |= 1 << ([[v objectAtIndex: c] intValue] - 1); [theRule setByDayMask: mask]; }