You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An inheriting tuple struct (surprisingly spelled eg. struct Bar : Foo (int, int); too!) also compiles and does broken things.
Edit: The other way around is probably also wrong, with a non-record-like base struct.
The text was updated successfully, but these errors were encountered:
ben0x539
changed the title
Struct inheritance goes wrong for nullary and enum-like structs
Struct inheritance goes wrong for unit-like and tuple structs
Jun 23, 2014
Change comparsion for checking if number is negative to include 128
The last byte in Little-Endian representation of negative integers start at 128 (Ox80) till 255 (OxFF). The comparison before the fix didn't check for 128 which made is_negative variable as false.
Potentially fixesrust-lang#15096
This compiles and segfaults (or anyway prints weird values):
An inheriting tuple struct (surprisingly spelled eg.
struct Bar : Foo (int, int);
too!) also compiles and does broken things.Edit: The other way around is probably also wrong, with a non-record-like base struct.
The text was updated successfully, but these errors were encountered: