• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Go で書き直した Ikemen


Commit MetaInfo

Revision47069e4d2c6c038f8c10e6fd4224551d5e7a492c (tree)
Zeit2018-11-17 18:40:11
Autorsuehiro <supersuehiro@user...>
Commitersuehiro

Log Message

マイナス乗の処理を修正

Ändern Zusammenfassung

Diff

--- a/src/bytecode.go
+++ b/src/bytecode.go
@@ -566,12 +566,7 @@ func (_ BytecodeExp) pow(v1 *BytecodeValue, v2 BytecodeValue, pn int) {
566566 if ValueType(Min(int32(v1.t), int32(v2.t))) == VT_Float {
567567 v1.SetF(Pow(v1.ToF(), v2.ToF()))
568568 } else if v2.ToF() < 0 {
569- if sys.cgi[pn].ver[0] == 1 {
570- v1.SetF(Pow(v1.ToF(), v2.ToF()))
571- } else {
572- f := Pow(v1.ToF(), v2.ToF())
573- v1.SetI(*(*int32)(unsafe.Pointer(&f)) << 29)
574- }
569+ v1.SetF(Pow(v1.ToF(), v2.ToF()))
575570 } else {
576571 i1, i2, hb := v1.ToI(), v2.ToI(), int32(-1)
577572 for uint32(i2)>>uint(hb+1) != 0 {