felixhao28 / JSCPP

A simple C++ interpreter written in JavaScript

Home Page:https://felixhao28.github.io/JSCPP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix <math.h>pow function

Clemenard opened this issue · comments

Here is my correction

rt.regFunc ((rt, _this, x, y) ->
        rt.val(tDouble,x.v ** y.v)
    ), g, "pow", [ tDouble,tDouble ], tDouble

Thanks!