From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6042 invoked by alias); 22 Jul 2005 14:47:46 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 6021 invoked by uid 22791); 22 Jul 2005 14:47:41 -0000 Received: from smtp-105-friday.noc.nerim.net (HELO mallaury.nerim.net) (62.4.17.105) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 22 Jul 2005 14:47:41 +0000 Received: from uniton.integrable-solutions.net (gdr.net1.nerim.net [62.212.99.186]) by mallaury.nerim.net (Postfix) with ESMTP id 203064F399; Fri, 22 Jul 2005 16:47:30 +0200 (CEST) Received: from uniton.integrable-solutions.net (localhost [127.0.0.1]) by uniton.integrable-solutions.net (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j6MEkOpI024238; Fri, 22 Jul 2005 16:46:24 +0200 Received: (from gdr@localhost) by uniton.integrable-solutions.net (8.12.10/8.12.10/Submit) id j6MEkOE6024237; Fri, 22 Jul 2005 16:46:24 +0200 To: Martin Wodok Cc: gcc-help@gcc.gnu.org Subject: Re: C++: No Warning for passing value > 255 as parameter to a function requiring "unsigned char" References: <200507221551.02486.m.wodok@osb-ag.de> From: Gabriel Dos Reis In-Reply-To: <200507221551.02486.m.wodok@osb-ag.de> Date: Fri, 22 Jul 2005 14:47:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-07/txt/msg00237.txt.bz2 Martin Wodok writes: | Assigning 1000 is of course out of bounds for "unsigned char", thus the No, it is not. Unsigned integer types are modulo types; it is no overflow. -- Gaby