summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-05 22:53:49 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-05 22:53:49 (GMT)
commitf50dabccaae935457ea6f09a349d54855d60e7d5 (patch)
tree133f714be2b946b240d34c7cf3e6c1f5b5963f30 /src/uscxml/plugins
parentdec6466d01757ab8e93d867e5a6d214bcafaf428 (diff)
downloaduscxml-f50dabccaae935457ea6f09a349d54855d60e7d5.zip
uscxml-f50dabccaae935457ea6f09a349d54855d60e7d5.tar.gz
uscxml-f50dabccaae935457ea6f09a349d54855d60e7d5.tar.bz2
Binary data in bindings
Diffstat (limited to 'src/uscxml/plugins')
-rw-r--r--src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp b/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp
index fd1f936..5b34181 100644
--- a/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp
+++ b/src/uscxml/plugins/datamodel/ecmascript/TypedArray.cpp
@@ -42,7 +42,7 @@ ArrayBuffer::ArrayBuffer(boost::shared_ptr<Blob> buffer) : _buffer(buffer) {
}
ArrayBuffer::ArrayBuffer(void* data, unsigned int size) {
- _buffer = boost::shared_ptr<Blob>(new Blob(data, size, "application/octet-stream"));
+ _buffer = boost::shared_ptr<Blob>(new Blob((const char*)data, size, "application/octet-stream"));
}
unsigned long ArrayBuffer::getByteLength() {