#702467 Conflicting declarations of variables alfa, beta, gama

Package:
bb
Source:
bb
Description:
ASCII-art demo based on AAlib
Submitter:
Michael Tautschnig
Date:
2021-01-16 16:03:03 UTC
Severity:
normal
Tags:
#702467#5
Date:
2013-03-06 22:05:32 UTC
From:
To:
While building the package using our research compiler infrastructure we noticed
the following conflicting declarations of variables alfa, beta and gama (sic!):

(with tex.c: typedef unsigned long dword;)

./tex.c:64:dword alfa, beta, gama;
./tex.h:31:extern int alfa,beta,gama,centerx,centery,centerz;

The difference in signedness and size (on architectures with
sizeof(long)!=sizeof(int)) will cause undefined behaviour, in particular on big
endian systems.

Best,
Michael

#702467#12
Date:
2021-01-16 16:01:52 UTC
From:
To:
Hi Michael,

Michael Tautschnig wrote in 2013:
[…]

Do you by chance can tell me, on which architectures I at least should
test a potential fix, e.g. for crashes?

		Regards, Axel