Skip to content

Commit

Permalink
Endianness.fromString(): revert incorrect case {None => _} change
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Aug 7, 2023
1 parent 8b258e2 commit cb0c1eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ object Endianness {
def fromString(s: Option[String], defaultEndian: Option[Endianness], dt: String, path: List[String]): Option[FixedEndian] = s match {
case Some("le") => Some(LittleEndian)
case Some("be") => Some(BigEndian)
case _ =>
case None =>
defaultEndian match {
case Some(e: FixedEndian) => Some(e)
case Some(_: CalcEndian) | Some(InheritedEndian) => None // to be overridden during compile
Expand Down

0 comments on commit cb0c1eb

Please sign in to comment.