Integer Promotion

Integer Promotion

The following code

short b, e;
e = (e << 8) | (b & 0xFF);
triggers diagnostic "#810: conversion from "int" to "short" may lose significant bits"

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.