Skip to content

Commit

Permalink
WIP fix word size issue? Is this macOS-specific?
Browse files Browse the repository at this point in the history
  • Loading branch information
vermiculus committed Feb 24, 2024
1 parent 5d5cd00 commit df398cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,8 @@ impl fmt::Display for ReferenceType {
impl ConfigLevel {
/// Converts a raw configuration level to a ConfigLevel
pub fn from_raw(raw: raw::git_config_level_t) -> ConfigLevel {
match raw {
match raw >> 12 {
// TODO: why!?
raw::GIT_CONFIG_LEVEL_PROGRAMDATA => ConfigLevel::ProgramData,
raw::GIT_CONFIG_LEVEL_SYSTEM => ConfigLevel::System,
raw::GIT_CONFIG_LEVEL_XDG => ConfigLevel::XDG,
Expand Down

0 comments on commit df398cd

Please sign in to comment.