Skip to content

MinGWでBuildできるように Xul を size_t(X) に書き換える

MinGWではulunsigned longではなくunsigned long longとなるため、下記のようなエラーが発生する。

cpprb/ReplayBuffer.hh:225:21: error: inconsistent deduction for auto return type: 'long unsigned int' and then 'long long unsigned int'
  return old_index - next_index;

そのため、Xulsize_t(X)のように置換する。また、その変更で他のシステムに影響しないか確認する。