diff options
| author | Stephen Hines <srhines@google.com> | 2010-10-11 10:54:21 -0700 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2010-10-11 12:32:33 -0700 |
| commit | 0977c94a4b83dd8ef6d3808160710ebbaa1b1768 (patch) | |
| tree | 8f75337823f600160082840372752b4b3a5e672d /rsScript.cpp | |
| parent | d7e5481b2232b0532d3ab938b472355c86769a76 (diff) | |
Fix support for 64-bit integers.
Change-Id: I4e2146a5fda41f280ee3f6f685a34f3cff28f05e
Diffstat (limited to 'rsScript.cpp')
| -rw-r--r-- | rsScript.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rsScript.cpp b/rsScript.cpp index c2f96891..c5632b53 100644 --- a/rsScript.cpp +++ b/rsScript.cpp @@ -115,6 +115,12 @@ void rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) s->setVar(slot, &value, sizeof(value)); } +void rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, long long value) +{ + Script *s = static_cast<Script *>(vs); + s->setVar(slot, &value, sizeof(value)); +} + void rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) { Script *s = static_cast<Script *>(vs); |
