flutter/dev/integration_tests/flutter_gallery/windows
Chris Bracken 9f8fe3f04c
[Windows] Fix signed/unsigned int comparison (#142341)
Previously, we were comparing the signed int `target_length` (returned by WideCharToMultiByte) to a size_t string length, resulting in a signed/unsigned comparison warning as follows:

```
windows\runner\utils.cpp(54,43): warning C4018:  '>': signed/unsigned mismatch
```

WideCharToMultiByte returns:
* 0 on error
* the number of bytes written to the buffer pointed to by its fifth parameter, lpMultiByteStr, on success.

As a result it's safe to store the return value in an unsigned int, which eliminates the warning.

No changes to tests since this is dependent on end-user project settings/modifications and does not trigger a warning with default project settings.

Fixes: https://github.com/flutter/flutter/issues/134227
2024-02-07 00:09:57 +00:00
..
flutter [Windows] Add target architecture to build path (#131843) 2023-08-31 09:09:02 -07:00
runner [Windows] Fix signed/unsigned int comparison (#142341) 2024-02-07 00:09:57 +00:00
.gitignore [gallery] add linux and windows files to gallery example (#66736) 2020-09-28 10:07:35 -07:00
CMakeLists.txt Opt into CMake policy CMP0135 (#125502) 2023-04-28 17:49:54 -04:00