python

Dependencies:   TSI mbed

Fork of pymite by Norimasa Okamoto

Revision:
4:23becb24acb8
Parent:
3:559c4bd38111
diff -r 559c4bd38111 -r 23becb24acb8 platform/mbed/NativeClassInterface.cpp
--- a/platform/mbed/NativeClassInterface.cpp	Wed Mar 13 10:05:34 2013 +0000
+++ b/platform/mbed/NativeClassInterface.cpp	Sat Mar 16 13:29:02 2013 +0000
@@ -102,6 +102,15 @@
 }
 
 template<>
+PmReturn_t NativeClassInterface::set_return_value<uint8_t>(PmType_t ret_type, uint8_t value)
+{
+    pPmObj_t pn;
+    PmReturn_t retval = int_new(value, &pn);
+    NATIVE_SET_TOS(pn);
+    return retval;
+}
+
+template<>
 PmReturn_t NativeClassInterface::set_return_value<uint16_t>(PmType_t ret_type, uint16_t value)
 {
     pPmObj_t pn;