Skip to content

Fix warning in Examples #197

@yjaeseok

Description

@yjaeseok

I'm submitting a ...

  • bug report
  • feature request
  • support request

General infomration

Prerequisites

  • Are you running the latest version?

Description

We have some build warnings.

C:\projects\bacardi\core/js_type_traits.h(54): warning C4244: 'argument': conversion from 'int64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\examples\ternary_calculator_bridge.cc) [C:\projects\bacardi\build\bacardi.vcxproj]
C:\projects\bacardi\core/js_type_traits.h(55): warning C4244: 'argument': conversion from 'uint64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\examples\ternary_calculator_bridge.cc) [C:\projects\bacardi\build\bacardi.vcxproj]
C:\projects\bacardi\core/js_type_traits.h(54): warning C4244: 'argument': conversion from 'int64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\examples\calculator_bridge.cc) [C:\projects\bacardi\build\bacardi.vcxproj]
C:\projects\bacardi\core/js_type_traits.h(55): warning C4244: 'argument': conversion from 'uint64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\examples\calculator_bridge.cc) [C:\projects\bacardi\build\bacardi.vcxproj]
..\build\Release\obj\global_intermediate\examples\calculator_bridge.cc(301): warning C4244: 'argument': conversion from 'double' to 'int64_t', possible loss of data [C:\projects\bacardi\build\bacardi.vcxproj]
electron_native_bridge.cc
test_interface_bridge.cc
C:\projects\bacardi\core/js_type_traits.h(54): warning C4244: 'argument': conversion from 'int64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\examples\electron\native\electron_native_bridge.cc) [C:\projects\bacardi\build\bacardi.vcxproj]
C:\projects\bacardi\core/js_type_traits.h(55): warning C4244: 'argument': conversion from 'uint64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\examples\electron\native\electron_native_bridge.cc) [C:\projects\bacardi\build\bacardi.vcxproj]
bacardi.cc
C:\projects\bacardi\core/js_type_traits.h(54): warning C4244: 'argument': conversion from 'int64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\test\test_interface_bridge.cc) [C:\projects\bacardi\build\bacardi.vcxproj]
C:\projects\bacardi\core/js_type_traits.h(55): warning C4244: 'argument': conversion from 'uint64_t' to 'double', possible loss of data (compiling source file ..\build\Release\obj\global_intermediate\test\test_interface_bridge.cc)

Context (Environment)

Operating System

  • Linux (x86/x64)
  • OSX (x86/x64)
  • Windows (x86/x64)
  • Linux (ARM)

Additional Information on the environment

I see this warnings, in AppVeyor.
Please refer to below link : https://ci.appveyor.com/project/romandev/bacardi/build/1.0.356/job/ynvl38uaec1r0r30

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions