Skip to content

Commit fbea3d1

Browse files
committed
Fix windows build
1 parent aa4852f commit fbea3d1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

repl/repl_win32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const char* Linenoise_GetInputLine(ui_state_t* state, repl_state_t* repl, uint32
1515

1616
if (line)
1717
{
18-
*length = (uint32_t)strlen(line);
18+
*length = cast(uint32_t)strlen(line);
1919
linenoiseHistoryAdd(line);
2020
}
2121
else

run_tests.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cl /TP parser\metac_lexer.c hash\crc32c.c os\os.c os\metac_alloc.c /DTEST_LEXER /Od /Zi /D_SILENCE_IVEC_C4799
22
metac_lexer.exe
33

4-
cl /TP parser\metac_parser_obj.c driver\metac_lpp.c /DNO_FIBERS /DNO_PREPROCESSOR /DNO_DOT_PRINTER /DTEST_PARSER /DNO_SEMANTIC /Od /Zi /MD /D_SILENCE_IVEC_C4799 /D_SILENCE_FVEC_C4799
4+
cl /TP parser\metac_parser_obj.c driver\metac_lpp.c /DNO_FIBERS /DNO_PREPROCESSOR /DOLD_PARSER /DNO_DOT_PRINTER /DTEST_PARSER /DNO_SEMANTIC /Od /Zi /MD /D_SILENCE_IVEC_C4799 /D_SILENCE_FVEC_C4799
55
metac_parser_obj.exe

semantic/metac_type_semantic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,8 +1309,7 @@ metac_type_index_t MetaCSemantic_TypeSemantic(metac_sema_state_t* self,
13091309
#endif
13101310
ARENA_ARRAY_ENSURE_SIZE(semaArguments, tInst->ArgumentCount);
13111311
// before calling semantic we need to mount the template instance scope.
1312-
metac_scope_t tmpScope = {(metac_decl_kind_t)0};
1313-
U32(tmpScope.ScopeFlags) |= scope_flag_temporary;
1312+
metac_scope_t tmpScope = {scope_flag_temporary};
13141313
MetaCSemantic_PushTemporaryScope(self, &tmpScope);
13151314

13161315
for(metac_expr_t** ep = &args->Expr; METAC_NODE(args) != emptyNode; args = args->Next, ep = &args->Expr)

0 commit comments

Comments
 (0)