Hello,
(B
(B  I have a question in timevalIntervalTo65536 function (rtcppkt.cpp).
(B  Doesn't it output wrong value?  t.tv_usec has the value of minus,
(Bafter "t.tv_usec << 12".
(B
(B  For example,
(B    t.tv_usec = 900000(10) = 00000000000011011011101110100000(2)
(B    "t.tv_usec << 12" then, 1101101110111010000000...(2)
(B    In this case, t.tv_usec has the value of minus, because t.tv_usec is
(Bnot uint32.
(B    So that, timevalIntervalTo65536 function outputs more smaller value
(Bthan the right value.
(B
(B
(B  - result += (t.tv_usec << 12) / 125000 * 2;
(B  + result += ((unsigned int)(t.tv_usec << 12)) / 125000 * 2;
(B
(B
(BHope this helps.
(B-- 
(BTAKEGAMI
(B
(B
(B_______________________________________________
(BCcrtp-devel mailing list
([email protected]
(Bhttp://lists.gnu.org/mailman/listinfo/ccrtp-devel

Reply via email to