warning:integer conversion resulted in truncation

[复制链接]
2211|1
 楼主| ykbazhong 发表于 2014-2-24 13:03 | 显示全部楼层 |阅读模式
请教大侠一个编译警告:
warning: integer conversion resulted in truncation
问题定位在程序段:
Uint16 *AudioBuffer;
AudioBuffer=(Uint16*)malloc(120000*sizeof(Uint16));
我是想动态分配120K左右空间存储录音数据。不知道哪里出问题了。
zhangmangui 发表于 2014-3-16 00:11 | 显示全部楼层
返回值是不是空值呢     空间够不?
AudioBuffer=malloc(120000*sizeof(Uint16));

这样呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部