File tree 2 files changed +3
-2
lines changed
src/Generator/Generators/QuickJS
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -562,13 +562,13 @@ public bool VisitPrimitiveType(PrimitiveType primitive)
562
562
return true ;
563
563
564
564
case PrimitiveType . LongLong :
565
- Context . Before . WriteLine ( $ "if (JS_ToBigInt64(ctx, (int64_t*)&_ { argName } , argv[{ Context . ParameterIndex } ]))") ;
565
+ Context . Before . WriteLine ( $ "if (JS_ToBigInt64(ctx, (int64_t*)&{ argName } , argv[{ Context . ParameterIndex } ]))") ;
566
566
Context . Before . WriteLineIndent ( "return JS_EXCEPTION;" ) ;
567
567
Context . Return . Write ( $ "{ argName } ") ;
568
568
return true ;
569
569
570
570
case PrimitiveType . ULongLong :
571
- Context . Before . WriteLine ( $ "if (JS_ToBigUint64(ctx, (int64_t *)&{ argName } , argv[{ Context . ParameterIndex } ]))") ;
571
+ Context . Before . WriteLine ( $ "if (JS_ToBigUint64(ctx, (uint64_t *)&{ argName } , argv[{ Context . ParameterIndex } ]))") ;
572
572
Context . Before . WriteLineIndent ( "return JS_EXCEPTION;" ) ;
573
573
Context . Return . Write ( $ "{ argName } ") ;
574
574
return true ;
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ workspace "qjs"
9
9
project " test"
10
10
kind " SharedLib"
11
11
language " C++"
12
+ cppdialect " C++11"
12
13
files
13
14
{
14
15
" gen/**.cpp" ,
You can’t perform that action at this time.
0 commit comments