From 7c621218f9654c9a9149609cb687cdc56c3a39b8 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 5 Jul 2016 21:21:47 +0000 Subject: [PATCH] fix set port bug. git-svn-id: svn://qnap.local/TwoTerm/branches/frameless@3095 5590a31f-7b70-45f8-8c82-aa3a8e5f4507 --- Emulators/GNOConsole.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Emulators/GNOConsole.mm b/Emulators/GNOConsole.mm index 7cd1120..12b6c83 100644 --- a/Emulators/GNOConsole.mm +++ b/Emulators/GNOConsole.mm @@ -371,7 +371,7 @@ enum { case StateSetPort1: // [ - if (c == ']') + if (c == '[') { _state++; } @@ -434,10 +434,10 @@ enum { -(void)keyDown:(NSEvent *)event screen:(Screen *)screen output:(OutputChannel *)output { - unsigned flags = [event modifierFlags]; + NSEventModifierFlags flags = [event modifierFlags]; NSString *chars = [event charactersIgnoringModifiers]; - unsigned length = [chars length]; + NSUInteger length = [chars length]; for (unsigned i = 0; i < length; ++i) {