作者watch (卑微的學生)
站內PttBug
標題[問題] 3701
時間Mon Dec 17 16:58:09 2007
bbs.c: In function `view_postinfo':
bbs.c:3127: warning: passing arg 1 of `fn2aidu' discards qualifiers from
pointer target type
stuff.c: In function `fn2aidu':
stuff.c:704: warning: left shift count >= width of type
stuff.c: In function `aidu2fn':
stuff.c:736: warning: right shift count >= width of type
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.121.135.5
推 MichaelHsin:err 沒仔細 check cross-platform 的問題 12/17 18:03
推 MichaelHsin:long = 64-bit 12/17 18:03
推 MichaelHsin:work around 是把 AIDS 的 unsigned long 改成 12/17 18:04
推 MichaelHsin:unsigned int64_t 之類的 12/17 18:04
推 MichaelHsin:換個講法,aidu 必須是 64-bit unsinged int 12/17 18:05
推 MichaelHsin:改完了,r3703,proto.h: typedef uint64_t aidu_t 12/17 19:50