From 876ea815769aa87a3e31bc76669304ba555f96c9 Mon Sep 17 00:00:00 2001 From: lyon Date: Thu, 28 Apr 2022 16:04:14 +0800 Subject: [PATCH] support type(b'test') -> --- package/PikaStdLib/PikaStdLib_SysObj.c | 4 ++++ .../pikascript/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/package/PikaStdLib/PikaStdLib_SysObj.c b/package/PikaStdLib/PikaStdLib_SysObj.c index 7ed244ab4..1ad7d2c22 100644 --- a/package/PikaStdLib/PikaStdLib_SysObj.c +++ b/package/PikaStdLib/PikaStdLib_SysObj.c @@ -45,6 +45,10 @@ void PikaStdLib_SysObj_type(PikaObj* self, Arg* arg) { obj_setSysOut(self, ""); return; } + if (ARG_TYPE_BYTES == type) { + obj_setSysOut(self, ""); + return; + } if (ARG_TYPE_METHOD_NATIVE == type) { obj_setSysOut(self, ""); return; diff --git a/port/linux/package/pikascript/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c b/port/linux/package/pikascript/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c index 7ed244ab4..1ad7d2c22 100644 --- a/port/linux/package/pikascript/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c +++ b/port/linux/package/pikascript/pikascript-lib/PikaStdLib/PikaStdLib_SysObj.c @@ -45,6 +45,10 @@ void PikaStdLib_SysObj_type(PikaObj* self, Arg* arg) { obj_setSysOut(self, ""); return; } + if (ARG_TYPE_BYTES == type) { + obj_setSysOut(self, ""); + return; + } if (ARG_TYPE_METHOD_NATIVE == type) { obj_setSysOut(self, ""); return;