From: "John Marshall" <[EMAIL PROTECTED]>
>
> if ((len = StrLen (Data.Field2)) > 0)  RecordSize += len + 1;
>
> which doesn't contain a sequence point violation.  That's not a
> coincidence :-).  (Yes, I realise some would prefer to see it written
> out even more verbosely.)

Since StrLen can't return < 0, how about

  if ((len = StrLen (Data.Field2)))
    RecordSize += len + 1;

(The extra parens are sometimes the easiest way to turn off the usual
warning about assignment within conditional).

Gotta put them on separate lines, else how do you breakpoint? :)


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to