【cppcheck】(warning) %d in format string (no. 1) requires 'int' but the argument type is 'ULONG {aka unsigned long}'.

はじめに C++の静的解析ツール「cppcheck」でソースコードを静的解析した場合に、以下の警告がでることがあります。 (warning) %d in format string (no. 1) requires 'int' but the argument type is 'ULONG {aka unsigned long}'. cppcheckのバージョン v1.66 サンプルプログラム 以下のソースプログラムを解析にかける…