Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Visual Studio 2015 Compiler Bug: 64bit multiplication
#include <iostream> #include <stdint.h> int main(int, char**) { for (uint32_t i = 1; i < 3; ++i) { uint32_t a = i * 0xfbd1e995; uint64_t b = a; std::cout << a << " 32bit" << std::endl; std::cout << b << " 64bit" << std::endl; } }
run
|
edit
|
history
|
help
0
copy
default
assaa
Matrix_1
VS'15 parameter pack sfinae
Catching divide-by-zero with /EHc
#22.2
Zero
#18
Arrays