MSVC warnings in binary_to_compressed_c.cpp #5359

Closed
opened 2022-05-31 03:58:01 +00:00 by Blinue · 1 comment
Blinue commented 2022-05-31 03:58:01 +00:00 (Migrated from github.com)

Version/Branch of Dear ImGui:

Version: 1.87
Branch: master

Back-end/Renderer/Compiler/OS

Compiler: MSVC
Operating System: Windows

My Issue/Question:

Got warnings when compiling as x64 (build via Conan)

Warning: ...\misc\fonts\binary_to_compressed_c.cpp(263,28): warning C4244: '=': conversion from '__int64' to 'stb_uint', possible loss of data
Warning: ...\misc\fonts\binary_to_compressed_c.cpp(280,31): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data 
Warning: ...\misc\fonts\binary_to_compressed_c.cpp(280,31): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data 
Warning: ...\misc\fonts\binary_to_compressed_c.cpp(282,63): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data 
...
**Version/Branch of Dear ImGui:** Version: 1.87 Branch: master **Back-end/Renderer/Compiler/OS** Compiler: MSVC Operating System: Windows **My Issue/Question:** Got warnings when compiling as x64 (build via [Conan](https://conan.io/)) ``` Warning: ...\misc\fonts\binary_to_compressed_c.cpp(263,28): warning C4244: '=': conversion from '__int64' to 'stb_uint', possible loss of data Warning: ...\misc\fonts\binary_to_compressed_c.cpp(280,31): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data Warning: ...\misc\fonts\binary_to_compressed_c.cpp(280,31): warning C4244: '=': conversion from '__int64' to 'int', possible loss of data Warning: ...\misc\fonts\binary_to_compressed_c.cpp(282,63): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data ... ```
ocornut commented 2022-05-31 12:25:56 +00:00 (Migrated from github.com)

Pushed fixes, thank you!

Pushed fixes, thank you!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ocornut/imgui#5359
No description provided.