Skip to content

Commit

Permalink
Fix types (from #1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Sep 14, 2024
1 parent e528568 commit 94adbf5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void create<LoadConfiguration>(nb::module_& m) {

.def_prop_rw("security_cookie",
nb::overload_cast<>(&LoadConfiguration::security_cookie, nb::const_),
nb::overload_cast<uint32_t>(&LoadConfiguration::security_cookie),
nb::overload_cast<uint64_t>(&LoadConfiguration::security_cookie),
"A pointer to a cookie that is used by Visual C++ or GS implementation."_doc)

LIEF_COPYABLE(LoadConfiguration)
Expand Down
2 changes: 1 addition & 1 deletion api/rust/cargo/lief/src/pe/load_configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ pub trait AsBase {
self.as_base().editlist()
}

fn security_cookie(&self) -> u32 {
fn security_cookie(&self) -> u64 {
self.as_base().security_cookie()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ class PE_LoadConfiguration : public Mirror<LIEF::PE::LoadConfiguration> {
uint16_t reserved1() const { return get().reserved1(); }
uint16_t dependent_load_flags() const { return get().dependent_load_flags(); }
uint32_t editlist() const { return get().editlist(); }
uint32_t security_cookie() const { return get().security_cookie(); }
uint64_t security_cookie() const { return get().security_cookie(); }
};

0 comments on commit 94adbf5

Please sign in to comment.