Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

Integer Promotion

ghellen
Beginner
296 Views
The following code
short b, e;
e = (e << 8) | (b & 0xFF);
triggers diagnostic "#810: conversion from "int" to "short" may lose significant bits"
0 Kudos
0 Replies
Reply