mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
go fmt
This commit is contained in:
parent
9f93253f63
commit
ed0f8d1d93
1 changed files with 45 additions and 45 deletions
|
|
@ -123,8 +123,8 @@ func (self *JitVm) Run(me, caller ContextRef, code []byte, value, gas, price *bi
|
|||
data.code = &code[0]
|
||||
}
|
||||
|
||||
r := C.evmjit_run(unsafe.Pointer(&data), unsafe.Pointer(self));
|
||||
fmt.Printf("JIT result: %d\n", r);
|
||||
r := C.evmjit_run(unsafe.Pointer(&data), unsafe.Pointer(self))
|
||||
fmt.Printf("JIT result: %d\n", r)
|
||||
|
||||
if r >= 100 {
|
||||
err = errors.New("OOG from JIT")
|
||||
|
|
@ -148,7 +148,7 @@ func (self *JitVm) Env() Environment {
|
|||
//export env_sha3
|
||||
func env_sha3(dataPtr *byte, length uint64, hashPtr unsafe.Pointer) {
|
||||
data := llvm2bytes(dataPtr, length)
|
||||
hash := crypto.Sha3(data);
|
||||
hash := crypto.Sha3(data)
|
||||
|
||||
hashHdr := reflect.SliceHeader{
|
||||
Data: uintptr(hashPtr),
|
||||
|
|
@ -219,7 +219,7 @@ func env_call(_vm unsafe.Pointer, _gas unsafe.Pointer, _receiveAddr unsafe.Point
|
|||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return false
|
||||
}
|
||||
|
||||
//export env_create
|
||||
|
|
|
|||
Loading…
Reference in a new issue