mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-10 21:58:48 +01:00
fix minor warning
This commit is contained in:
@ -1525,7 +1525,7 @@ int wrenDefineVariable(WrenVM* vm, ObjModule* module, const char* name,
|
||||
{
|
||||
// An implicitly declared variable's value will always be a number.
|
||||
// Now we have a real definition.
|
||||
if(line) *line = AS_NUM(module->variables.data[symbol]);
|
||||
if(line) *line = (int)AS_NUM(module->variables.data[symbol]);
|
||||
module->variables.data[symbol] = value;
|
||||
|
||||
// If this was a localname we want to error if it was
|
||||
|
||||
Reference in New Issue
Block a user