Skip to content

Commit

Permalink
revert whitespace change
Browse files Browse the repository at this point in the history
  • Loading branch information
ehigham committed Feb 6, 2024
1 parent 2dd1fa3 commit d6729e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ trait SBaseStructValue extends SValue {
def loadField(cb: EmitCodeBuilder, fieldName: String): IEmitCode =
loadField(cb, st.fieldIdx(fieldName))

def subset(fieldNames: String*): SBaseStructValue =
new SStructViewValue(SStructView.subset(fieldNames.toIndexedSeq, st), this)
def subset(fieldNames: String*): SBaseStructValue = {
val st = SSubsetStruct(this.st, fieldNames.toIndexedSeq)
new SSubsetStructValue(st, this)
}

override def hash(cb: EmitCodeBuilder): SInt32Value = {
val hash_result = cb.newLocal[Int]("hash_result_struct", 1)
Expand Down
3 changes: 1 addition & 2 deletions hail/src/main/scala/is/hail/types/virtual/TBaseStruct.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ abstract class TBaseStruct extends Type {

def fields: IndexedSeq[Field]

lazy val fieldIdx: collection.Map[String, Int] =
toMapFast(fields)(_.name, _.index)
lazy val fieldIdx: collection.Map[String, Int] = toMapFast(fields)(_.name, _.index)

override def children: IndexedSeq[Type] = types

Expand Down

0 comments on commit d6729e0

Please sign in to comment.