Commit 471a4700 authored by Robert Bradshaw's avatar Robert Bradshaw

Ignore meaningless 'signed' declaration for non-char types.

This makes type promotion rules clearer.
parent dbe3f24c
......@@ -1427,6 +1427,10 @@ class CNumericType(CType):
def __init__(self, rank, signed = 1):
self.rank = rank
if rank > 0 and signed == SIGNED:
# Signed is meaningless for anything but char, and complicates
# type promotion.
signed = 1
self.signed = signed
def sign_and_name(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment