Add (u)short #7

Merged
TheBrokenRail merged 2 commits from :short into master 2024-01-21 23:47:06 +00:00
Showing only changes of commit 0b696bd55b - Show all commits

View File

@ -87,7 +87,7 @@ export class SimpleProperty implements Property {
return 1;
} else if (this.#type === 'short' || this.#type === 'ushort') {
// Short
return 1;
return 2;
bigjango13 marked this conversation as resolved Outdated

This should be 2. You can determine alignment by adding ERR("Alignment: %i", _Alignof(short)); to a file.

This should be `2`. You can determine alignment by adding `ERR("Alignment: %i", _Alignof(short));` to a file.

Whoops, I forgot to change that one, should be fixed now, odd that it didn't give me any errors.

Whoops, I forgot to change that one, should be fixed now, odd that it didn't give me any errors.
} else if (this.#type.startsWith('std::vector<')) {
// C++ Vector
return 4;