go fmt
This commit is contained in:
parent
9a8ab15d88
commit
41144ff0dc
@ -1,16 +1,15 @@
|
||||
package macho
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"bytes"
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
. "ios-wrapper/pkg/ios"
|
||||
)
|
||||
|
||||
|
||||
type SpecialSelector struct {
|
||||
idx uint
|
||||
name string
|
||||
@ -63,7 +62,7 @@ func (mc *MachoContext) CollectSpecialSelectors() []*SpecialSelector {
|
||||
|
||||
buffer := bytes.NewReader(selectors_buffer)
|
||||
|
||||
for i := uint(0); i < uint(section.Size()) / 8; i++ {
|
||||
for i := uint(0); i < uint(section.Size())/8; i++ {
|
||||
// this field is actually a Rebase
|
||||
// we assume that no rebase is needed
|
||||
// so everything sticks to its file offset
|
||||
@ -72,7 +71,7 @@ func (mc *MachoContext) CollectSpecialSelectors() []*SpecialSelector {
|
||||
|
||||
var name_builder strings.Builder
|
||||
for j := uint32(0); ; j++ {
|
||||
c := methods[offset - methname_offset + j]
|
||||
c := methods[offset-methname_offset+j]
|
||||
if c == 0 {
|
||||
break
|
||||
}
|
||||
@ -362,4 +361,3 @@ func (mc *MachoContext) ReworkForObjc() {
|
||||
offset += 4
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user