[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
indent breaks C code !
From: |
Xavier Bestel |
Subject: |
indent breaks C code ! |
Date: |
Thu, 07 May 2009 17:44:01 +0200 |
Package: indent
Version: 2.2.10-1
Severity: important
Hi,
when feeding this line:
a += - -1;
indent transforms it to:
a += --1;
which hasn't the same meaning at all (instead of a unary minus on a negative
constant, it's a predecrementation of a constant) and in this example isn't
even legal C code.
It's quite a serious issue.
Thanks,
Xav
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-2-686 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages indent depends on:
ii libc6 2.9-10 GNU C Library: Shared libraries
indent recommends no packages.
indent suggests no packages.
-- no debconf information
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- indent breaks C code !,
Xavier Bestel <=