mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-22 20:55:27 +00:00
Address PR feedback
This commit is contained in:
parent
1b73bc8042
commit
64f3f78c0f
|
@ -31,7 +31,7 @@ namespace GLib {
|
|||
),
|
||||
new GLib.AbiField("is_setup"
|
||||
, -1
|
||||
, (uint) sizeof(uint) // is_setup
|
||||
, (uint) Marshal.SizeOf<bool>() // is_setup
|
||||
, "hook_size"
|
||||
, "hooks"
|
||||
, 1
|
||||
|
|
|
@ -253,10 +253,6 @@ namespace GtkSharp.Generation {
|
|||
if (isBlittable)
|
||||
return "sizeof( " + cstype + " )";
|
||||
|
||||
// This is optimization based on https://github.com/GtkSharp/GtkSharp/pull/261#discussion_r673381869
|
||||
if (cstype == "bool")
|
||||
return "sizeof( uint )";
|
||||
|
||||
return "Marshal.SizeOf<" + cstype + ">()";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue