Address PR feedback
This commit is contained in:
parent
1b73bc8042
commit
64f3f78c0f
2 changed files with 1 additions and 5 deletions
|
@ -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