Skip to content

Commit

Permalink
app_sqlang: typos a/an
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and miconda committed Dec 16, 2022
1 parent 09b657a commit 5591a7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/modules/app_sqlang/squirrel/squirrel/sqbaselib.cpp
Expand Up @@ -599,7 +599,7 @@ static SQInteger array_top(HSQUIRRELVM v)
v->Push(_array(o)->Top());
return 1;
}
else return sq_throwerror(v,_SC("top() on a empty array"));
else return sq_throwerror(v,_SC("top() on an empty array"));
}

static SQInteger array_insert(HSQUIRRELVM v)
Expand Down Expand Up @@ -1173,7 +1173,7 @@ static SQInteger thread_wakeup(HSQUIRRELVM v)
if(state != SQ_VMSTATE_SUSPENDED) {
switch(state) {
case SQ_VMSTATE_IDLE:
return sq_throwerror(v,_SC("cannot wakeup a idle thread"));
return sq_throwerror(v,_SC("cannot wakeup an idle thread"));
break;
case SQ_VMSTATE_RUNNING:
return sq_throwerror(v,_SC("cannot wakeup a running thread"));
Expand Down Expand Up @@ -1209,7 +1209,7 @@ static SQInteger thread_wakeupthrow(HSQUIRRELVM v)
if(state != SQ_VMSTATE_SUSPENDED) {
switch(state) {
case SQ_VMSTATE_IDLE:
return sq_throwerror(v,_SC("cannot wakeup a idle thread"));
return sq_throwerror(v,_SC("cannot wakeup an idle thread"));
break;
case SQ_VMSTATE_RUNNING:
return sq_throwerror(v,_SC("cannot wakeup a running thread"));
Expand Down
2 changes: 1 addition & 1 deletion src/modules/app_sqlang/squirrel/squirrel/sqcompiler.cpp
Expand Up @@ -1273,7 +1273,7 @@ class SQCompiler
SQInteger eqtarget = trg;
bool local = _fs->IsLocal(trg);
if(local) {
eqtarget = _fs->PushTarget(); //we need to allocate a extra reg
eqtarget = _fs->PushTarget(); //we need to allocate an extra reg
}
_fs->AddInstruction(_OP_EQ, eqtarget, trg, expr);
_fs->AddInstruction(_OP_JZ, eqtarget, 0);
Expand Down

0 comments on commit 5591a7d

Please sign in to comment.