lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 15/01/2010 15:47, Bulat Ziganshin wrote:
Hello Roberto,

Friday, January 15, 2010, 7:33:50 PM, you wrote:

   ci->callstatus = (ci->callstatus&  ~(CIST_YPCALL | CIST_STAT)) | CIST_YIELDED;

why not

ci->callstatus = (unsigned char) ((ci->callstatus&  ~(CIST_YPCALL | CIST_STAT)) | CIST_YIELDED);


ci->callstatus = (lu_byte) ((ci->callstatus & ~(CIST_YPCALL | CIST_STAT)) | CIST_YIELDED);


I also have no idea why the conversion from long.