On Friday 11 September 2009 09:20:33 Nobuhiro Lin wrote:
> -             if (total_sec >= (end - start))
> +             if(((end - start) >= total_sec) && ((end - start) <= total_sec 
> + 1))

please fix your style.  skimping on whitespace doesnt make for smaller code.

that said, your test boils down to "== total_sec" or "== total_sec + 1".  
might as well use that rather than confusing greater/less than comparisons.
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to