Fix warn-unsafe-buffer-usage-fixits-pre-increment.cpp for Windows
authorHans Wennborg <hans@chromium.org>
Thu, 13 Apr 2023 08:21:11 +0000 (10:21 +0200)
committerHans Wennborg <hans@chromium.org>
Thu, 13 Apr 2023 08:21:15 +0000 (10:21 +0200)
commit39938f2d096ca9ed03ecc17ea169ed3195682f18
treea90135590f7113983e9236e1f56047aeaa673239
parent674d3d7acceead99ac55117ab4451ae11e59262a
Fix warn-unsafe-buffer-usage-fixits-pre-increment.cpp for Windows

long is 32-bits on windows, so the test was failing with:

  error: cast from pointer to smaller type 'unsigned long' loses
  information

see e.g. https://lab.llvm.org/buildbot/#/builders/123/builds/18361

This is a follow-up to D144304
clang/test/SemaCXX/warn-unsafe-buffer-usage-fixits-pre-increment.cpp