10.07.2015 Views

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

MPLAB® C30 C 编译器用户指南

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MPLAB <strong>C30</strong> C 编 译 器 诊 断comparison between signed and unsigned比 较 的 一 个 操 作 数 是 有 符 号 的 , 另 外 一 个 操 作 数 是 无 符 号 的 。 有 符 号 操 作 数 可 视 为 无符 号 值 处 理 , 这 样 做 可 能 不 正 确 。comparison is always n比 较 仅 包 含 常 量 表 达 式 , 因 此 编 译 器 能 得 到 比 较 的 运 行 时 结 果 。 结 果 总 是 n。comparison is always n due to width of bit-field由 于 位 域 的 宽 度 , 包 含 位 域 的 比 较 的 结 果 总 是 n。comparison is always false due to limited range of data type运 行 时 比 较 得 结 果 总 为 false, 这 是 由 于 数 据 类 型 的 范 围 有 限 。comparison is always true due to limited range of data type运 行 时 比 较 的 结 果 总 是 为 true, 这 是 由 于 数 据 类 型 的 范 围 有 限 。comparison of promoted ~unsigned with constant比 较 的 一 个 操 作 数 为 提 升 的 ~unsigned, 而 另 一 个 操 作 数 为 常 数 。comparison of promoted ~unsigned with unsigned比 较 的 一 个 操 作 数 为 提 升 的 ~unsigned, 而 另 一 个 操 作 数 为 unsigned。comparison of unsigned expression >= 0 is always true比 较 表 达 式 将 无 符 号 值 和 零 做 比 较 。 由 于 无 符 号 值 不 可 能 小 于 零 , 因 此 运 行 时 比 较 的结 果 将 总 是 为 true。comparison of unsigned expression < 0 is always false比 较 表 达 式 将 无 符 号 值 和 零 做 比 较 。 由 于 无 符 号 值 不 可 能 小 于 零 , 因 此 运 行 时 比 较 的结 果 将 总 是 为 false。comparisons like X

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!