-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I used a code for number theory returning results on a bool array. The code crashed in unpredictable way.
Now I found that SizeOf returns a 4 byte for bool. Should it be 1 byte? I am not sure.
I changed the type on c# to byte[] and in kernel to uchar[], and the code works now.
Could there by a bug? I am not sure, so sorry if it is a false alarm.
internal static int SizeOf<T>() { return typeof (T).IsGenericType ? Marshal.SizeOf(default(T)) : Marshal.SizeOf(typeof(T)); }
Metadata
Metadata
Assignees
Labels
No labels