From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1300 invoked by alias); 25 Oct 2006 16:20:17 -0000 Received: (qmail 712 invoked by uid 48); 25 Oct 2006 16:20:04 -0000 Date: Wed, 25 Oct 2006 16:20:00 -0000 Message-ID: <20061025162004.711.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/29592] Unending loops In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "darkjames at darkjames dot ath dot cx" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg02179.txt.bz2 List-Id: ------- Comment #3 from darkjames at darkjames dot ath dot cx 2006-10-25 16:20 ------- By the way, it's possible to fix the code in other way than using unions? It just need to work both for wchar_t strings and normal strings... If you have some ideas how, it'll be nice if you give me some hint... maybe use char * everywhere and use: real_char_index = index * (config_use_unicode * sizeof(wchar_t)) ? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29592