Skip to content

Commit

Permalink
JACOBIN-592 Cleaned up suspect code in run.go
Browse files Browse the repository at this point in the history
  • Loading branch information
platypusguy committed Oct 30, 2024
1 parent e665f0b commit 1d0ff87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config/buildno.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

package config

var BuildNo = 3160
var BuildNo = 3163
11 changes: 7 additions & 4 deletions src/jvm/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1320,13 +1320,16 @@ frameInterpreter:
floatVal := pop(f).(float64)
push(f, floatVal)
push(f, floatVal)
case opcodes.D2I: // 0xBE
case opcodes.D2I: // 0x8E
doubleVal := pop(f).(float64)
pop(f)
fallthrough
push(f, int64(math.Trunc(doubleVal)))
case opcodes.D2L: // 0x8F convert double to long
doubleVal := pop(f).(float64)
pop(f)
fallthrough

l := int64(math.Trunc(doubleVal))
push(f, l)
push(f, l)
case opcodes.D2F: // 0x90 Double to float
floatVal := float32(pop(f).(float64))
pop(f)
Expand Down

0 comments on commit 1d0ff87

Please sign in to comment.