From 140fd60d6b7a9b922098ee5c408169573f94e33e Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 30 Dec 2015 05:21:16 -0800 Subject: [PATCH] Logically order type specifier cases in sig/parse. --- sig/parse.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sig/parse.cpp b/sig/parse.cpp index e77da79..b451c9d 100644 --- a/sig/parse.cpp +++ b/sig/parse.cpp @@ -202,12 +202,13 @@ Type *Parse_(CYPool &pool, const char **encoding, char eos, bool named, Callback type = (*callback)(pool, aggregate); } break; - case 'N': flags |= JOC_TYPE_INOUT; goto next; + case 'r': flags |= JOC_TYPE_CONST; goto next; + case 'n': flags |= JOC_TYPE_IN; goto next; - case 'O': flags |= JOC_TYPE_BYCOPY; goto next; + case 'N': flags |= JOC_TYPE_INOUT; goto next; case 'o': flags |= JOC_TYPE_OUT; goto next; + case 'O': flags |= JOC_TYPE_BYCOPY; goto next; case 'R': flags |= JOC_TYPE_BYREF; goto next; - case 'r': flags |= JOC_TYPE_CONST; goto next; case 'V': flags |= JOC_TYPE_ONEWAY; goto next; next: -- 2.49.0