作者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
1F:推 MichaelHsin:err 没仔细 check cross-platform 的问题 12/17 18:03
2F:推 MichaelHsin:long = 64-bit 12/17 18:03
3F:推 MichaelHsin:work around 是把 AIDS 的 unsigned long 改成 12/17 18:04
4F:推 MichaelHsin:unsigned int64_t 之类的 12/17 18:04
5F:推 MichaelHsin:换个讲法,aidu 必须是 64-bit unsinged int 12/17 18:05
6F:推 MichaelHsin:改完了,r3703,proto.h: typedef uint64_t aidu_t 12/17 19:50