mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix bug where &i[0] = null was not detected to be an error. #1833
This commit is contained in:
@@ -140,7 +140,8 @@ enum EventType : (long val)
|
||||
|
||||
fn EventType! event_type_from(int val)
|
||||
{
|
||||
switch(val) {
|
||||
switch(val)
|
||||
{
|
||||
case EventType.LEFT_MOUSE_DOWN.val: return LEFT_MOUSE_DOWN;
|
||||
case EventType.LEFT_MOUSE_UP.val: return LEFT_MOUSE_UP;
|
||||
case EventType.RIGHT_MOUSE_DOWN.val: return RIGHT_MOUSE_DOWN;
|
||||
|
||||
Reference in New Issue
Block a user