已关闭
[Bug-Report|缺陷反馈]: Format specifier mismatch in conv3d_tiling_engine.cpp: using %u for int64_t variables #1112
LiuZonggu创建于  2月24日关闭于  2月24日
LiuZonggu成员
2月24日 创建

Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.

Describe the current behavior / 问题描述 (Mandatory / 必填)

The file conv3d_tiling_engine.cpp contains format specifier warnings where %u is being used to print int64_t type variables. This causes compiler warnings and may lead to undefined behavior or incorrect output on certain platforms.

Environment / 环境信息 (Mandatory / 必填)

NA

Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)

There are warnings during build

Describe the expected behavior / 预期结果 (Mandatory / 必填)

The code should use the correct format specifiers to print for int64_t types.

ops-nn/conv/conv3d_v2/op_host/op_tiling/conv3d_tiling_engine.cpp:912:17: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 6 has type ‘int64_t’ {aka ‘long int’} [-Wformat=]

Special notes for this issue/备注 (Optional / 选填)

likedislike
LLiuZonggu成员
2月24日 将 LiuZonggu 设为负责人
CANN-robotCANN-robot成员
2月24日 关闭了 issue
LiuZonggu成员
2月24日 评论:

已合入修改

likedislike
CANN-robotCANN-robot成员
3月20日 添加了label:resolved