Skip to content

Make conversions from integers to floating-point double explicit#3756

Merged
opencv-pushbot merged 2 commits intoopencv:2.4from
mansourmoufid:cast-double
Mar 2, 2015
Merged

Make conversions from integers to floating-point double explicit#3756
opencv-pushbot merged 2 commits intoopencv:2.4from
mansourmoufid:cast-double

Conversation

@mansourmoufid
Copy link
Copy Markdown
Contributor

In a few places, variables with type double are initialized by integers, and Clang++ treats it as an error (-Wc++11-narrowing).

This branch makes these conversions explicit with casts.

@ilya-lavrenov
Copy link
Copy Markdown
Contributor

👍

@ilya-lavrenov ilya-lavrenov self-assigned this Feb 25, 2015
@opencv-pushbot opencv-pushbot merged commit 7d4cbbd into opencv:2.4 Mar 2, 2015
tanjo pushed a commit to bitcellar-labs/opencv that referenced this pull request Mar 3, 2015
@mansourmoufid mansourmoufid deleted the cast-double branch March 19, 2015 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

port/backport done Label for maintainers. Authors of PR can ignore this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants