Skip to content

fix(ios): use NSInteger for setFollowingPerspective parameter type#538

Open
christian-apollo wants to merge 1 commit intogooglemaps:mainfrom
christian-apollo:fix/ios-setFollowingPerspective-type
Open

fix(ios): use NSInteger for setFollowingPerspective parameter type#538
christian-apollo wants to merge 1 commit intogooglemaps:mainfrom
christian-apollo:fix/ios-setFollowingPerspective-type

Conversation

@christian-apollo
Copy link

@christian-apollo christian-apollo commented Feb 18, 2026

The perspective parameter was declared as double but immediately cast to NSInteger. Using NSInteger directly avoids a lossy implicit floating-point-to-integer conversion and matches the expected enum type.

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation
  • I added new tests to check the change I am making
  • All existing and new tests are passing.

The perspective parameter was declared as `double` but immediately cast
to `NSInteger`. Using `NSInteger` directly avoids a lossy implicit
floating-point-to-integer conversion and matches the expected enum type.

Co-authored-by: Cursor <cursoragent@cursor.com>
@google-cla
Copy link

google-cla bot commented Feb 18, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@christian-apollo christian-apollo marked this pull request as draft February 23, 2026 02:36
@christian-apollo christian-apollo marked this pull request as ready for review February 23, 2026 02:37
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.

2 participants