看板 PttBug 關於我們 聯絡資訊
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