#4559 closed defect (duplicate)
test_dbg complaining about invalid casts
Reported by: | Stan | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | |
Component: | Core engine | Keywords: | |
Cc: | Patch: |
Description
If you run the debug tests on windows you'll get two annoying popups about data loss (which is what the test does). The message states
Run-Time Check Failure #1 - A cast to a smaller data type has caused a loss of data. If this was intentional, you should mask the source of the cast with the appropriate bitmask. For example: char c = (i & 0xFF);
There is probably some kind of stuff to write to fix it, and it would be nice to have it. Else you can just press ignore.
Call Stack:
test_dbg.exe!`anonymous namespace'::ArgConverter<int>::visit_any_int<unsigned __int64>(unsigned __int64 value) Line 260 C++ test_dbg.exe!fmt::internal::ArgVisitor<`anonymous namespace'::ArgConverter<int>,void>::visit_ulong_long(unsigned __int64 value) Line 760 C++ test_dbg.exe!fmt::internal::ArgVisitor<`anonymous namespace'::ArgConverter<int>,void>::visit(const fmt::internal::Arg & arg) Line 805 C++ test_dbg.exe!fmt::internal::PrintfFormatter<char>::format(fmt::BasicWriter<char> & writer, fmt::BasicStringRef<char> format, const fmt::ArgList & args) Line 991 C++ test_dbg.exe!fmt::printf<char>(fmt::BasicWriter<char> & w, fmt::BasicStringRef<char> format, const fmt::ArgList & args) Line 1816 C++ test_dbg.exe!fmt::sprintf(fmt::BasicStringRef<char> format, const fmt::ArgList & args) Line 1829 C++ test_dbg.exe!fmt::sprintf<unsigned __int64>(fmt::BasicStringRef<char> arg0, const unsigned __int64 & v0) Line 2067 C++ test_dbg.exe!TestCppformat::test_basic() Line 39 C++ test_dbg.exe!TestDescription_suite_TestCppformat_test_basic::runTest() Line 27 C++ test_dbg.exe!CxxTest::RealTestDescription::run() Line 121 C++ test_dbg.exe!CxxTest::TestRunner::runTest(CxxTest::TestDescription & td) Line 105 C++ test_dbg.exe!CxxTest::TestRunner::runSuite(CxxTest::SuiteDescription & sd) Line 91 C++ test_dbg.exe!CxxTest::TestRunner::runWorld() Line 71 C++ test_dbg.exe!CxxTest::TestRunner::runAllTests(CxxTest::TestListener & listener) Line 42 C++ test_dbg.exe!CxxTest::ErrorFormatter::run() Line 63 C++ test_dbg.exe!CxxTest::Main<CxxTest::ErrorPrinter>(CxxTest::ErrorPrinter & tmp, int argc, char * * argv) Line 148 C++ test_dbg.exe!SDL_main(int argc, char * * argv) Line 21 C++ test_dbg.exe!main_utf8(int argc, char * * argv) Line 126 C test_dbg.exe!main(int argc, char * * argv) Line 134 C [External Code] [Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
Change History (2)
comment:1 by , 7 years ago
Component: | UI & Simulation → Core engine |
---|---|
Milestone: | Backlog |
Resolution: | → duplicate |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This is a duplicate of #3753. Please try to search to check if there are any relevant existing tickets before you create a new one.