mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
fix warning
This commit is contained in:
parent
16a1f3c4b8
commit
0557df25eb
@ -1300,7 +1300,8 @@ TEST(pikaMain, class_demo_1_file) {
|
||||
Parser_multiLineToFile((char*)"pika_bytecode.bin", (char*)lines);
|
||||
char bytecodebuff[4096] = {0};
|
||||
FILE* f = __platform_fopen("pika_bytecode.bin", "r");
|
||||
fread(bytecodebuff, 1, 4096, f);
|
||||
printf("size: %ld\n", fread(bytecodebuff, 1, 4096, f));
|
||||
__platform_printf((char*)"BEGIN\r\n");
|
||||
pikaVM_runByteCode(self, (uint8_t*)bytecodebuff);
|
||||
/* assert */
|
||||
EXPECT_STREQ(log_buff[0], (char*)"hello world\r\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user