oopsie hehe

This commit is contained in:
Sasha Koshka 2022-11-22 13:13:59 -05:00
parent 2da9943ea3
commit 2c2fd8f3f9
1 changed files with 6 additions and 1 deletions

View File

@ -418,7 +418,7 @@ func (operation *Operation) Solution () (solution int64, err error) {
return
}
func (operation *Operation) InexactSolution (solution float64, err error) {
func (operation *Operation) InexactSolution () (solution float64, err error) {
var intSolution int64
intSolution, err = operation.Solution()
solution = float64(intSolution)
@ -529,3 +529,8 @@ func (literal *IntegerLiteral) Solution () (solution int64, err error) {
solution = literal.value
return
}
func (literal *IntegerLiteral) InexactSolution () (solution float64, err error) {
solution = float64(literal.value)
return
}