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"
|
new GLib.AbiField("is_setup"
|
||||||
, -1
|
, -1
|
||||||
, (uint) sizeof(uint) // is_setup
|
, (uint) Marshal.SizeOf<bool>() // is_setup
|
||||||
, "hook_size"
|
, "hook_size"
|
||||||
, "hooks"
|
, "hooks"
|
||||||
, 1
|
, 1
|
||||||
|
|
|
@ -253,10 +253,6 @@ namespace GtkSharp.Generation {
|
||||||
if (isBlittable)
|
if (isBlittable)
|
||||||
return "sizeof( " + cstype + " )";
|
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 + ">()";
|
return "Marshal.SizeOf<" + cstype + ">()";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue