Skip to content

Fix type mismatches causing compilation error in Xcode27.#2164

Open
copybara-service[bot] wants to merge 1 commit into
earlgrey2from
test_931374355
Open

Fix type mismatches causing compilation error in Xcode27.#2164
copybara-service[bot] wants to merge 1 commit into
earlgrey2from
test_931374355

Conversation

@copybara-service

Copy link
Copy Markdown

Fix type mismatches causing compilation error in Xcode27.

Why

  • Strict Compiler Warning Fixes: Xcode 27 introduced stricter checks that promoted implicit type conversions to errors (e.g. -Wimplicit-int-float-conversion and -Wsign-conversion), breaking the compilation of several core utility files.

What

  • Resolved Implicit Conversions: Added explicit CGFloat and double casts to resolve implicit integer-to-floating-point conversions in:
    • GREYVisibilityCheckerTarget.m
    • GREYThoroughVisibilityChecker.m
    • CGGeometry+GREYUI.m
    • GREYPathGestureUtils.m
  • Resolved Sign Mismatch: Changed integerValue to unsignedIntegerValue in GREYAppState.m to match the unsigned NS_OPTIONS type of GREYAppState.

### Why

* **Strict Compiler Warning Fixes**: Xcode 27 introduced stricter checks that promoted implicit type conversions to errors (e.g. `-Wimplicit-int-float-conversion` and `-Wsign-conversion`), breaking the compilation of several core utility files.

### What

* **Resolved Implicit Conversions**: Added explicit `CGFloat` and `double` casts to resolve implicit integer-to-floating-point conversions in:
  * `GREYVisibilityCheckerTarget.m`
  * `GREYThoroughVisibilityChecker.m`
  * `CGGeometry+GREYUI.m`
  * `GREYPathGestureUtils.m`
* **Resolved Sign Mismatch**: Changed `integerValue` to `unsignedIntegerValue` in `GREYAppState.m` to match the unsigned `NS_OPTIONS` type of `GREYAppState`.

PiperOrigin-RevId: 931374355
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant