help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: conversion warning


From: BobR
Subject: Re: conversion warning
Date: Thu, 20 Sep 2007 16:58:57 GMT

Alexandru Mosoi wrote in message...
> supposing that I have the following lines:
> 
> long long a = 12345678901234567890LL;
> int b = a;
> 
> how can I make g++ (4.1.2) issue an warning because of loss of
> precision?
> 

Use -ansi -pedantic.

-- 
Bob R
POVrookie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]