objectbox / objectbox-c

C and C++ database for objects and structs
https://objectbox.io/
Apache License 2.0
211 stars 37 forks source link

get panic when I was running the latest version on armv7 #41

Closed levin-go closed 4 months ago

levin-go commented 4 months ago

When I was running the latest version on armv7, I encountered a panic image

the code in version.go

func (v Version) LessThan(other Version) bool {
  return v.Major < other.Major || v.Minor < other.Minor || v.Patch < other.Patch
}

should be change to ?

func (v Version) LessThan(other Version) bool {
  if v.Major > other.Major {
    return false
  }
  if v.Minor > other.Minor {
    return false
  }
  if v.Patch > other.Patch {
    return false
  }
  if (v.Major == other.Major && v.Minor == other.Minor && v.Patch == other.Patch){
    return false
  }
  return true
}
levin-go commented 4 months ago

sorry, I should submit this bug in the objectbox go project.