Skip to content

Fixed narrowing conversion warning with MSVC compiler.#25857

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/yolov9_harrowing_conversion
Jul 3, 2024
Merged

Fixed narrowing conversion warning with MSVC compiler.#25857
asmorkalov merged 1 commit intoopencv:4.xfrom
asmorkalov:as/yolov9_harrowing_conversion

Conversation

@asmorkalov
Copy link
Copy Markdown
Contributor

Addresses warning on buildbot:

C:\build\precommit_windows64\4.x\opencv\modules\dnn\test\test_onnx_importer.cpp(2803): error C2398: Element '2': conversion from 'double' to 'float' requires a narrowing conversion [C:\build\precommit_windows64\build\modules\dnn\opencv_test_dnn.vcxproj]

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov asmorkalov added this to the 4.11.0 milestone Jul 3, 2024
@asmorkalov asmorkalov requested a review from Abdurrahheem July 3, 2024 09:35
@asmorkalov asmorkalov merged commit 53f5127 into opencv:4.x Jul 3, 2024
@asmorkalov asmorkalov mentioned this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant