summaryrefslogtreecommitdiff
path: root/scope.c
diff options
context:
space:
mode:
Diffstat (limited to 'scope.c')
-rw-r--r--scope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scope.c b/scope.c
index 4cc5249..afb9d5c 100644
--- a/scope.c
+++ b/scope.c
@@ -8,7 +8,7 @@ scope_t* init_scope(scope_t parent) {
*(scope->parent) = parent;
return scope;
}
-pair_t* get_pair_global(char* key, scope_t* scope) {
+pair_t* get_pair_global(scope_t* scope, char* key) {
while (scope->parent != NULL) {
pair_t* pair = hashtable_get_pair(scope->hashtable, key);
if (pair != NULL) {