Skip to content

Commit

Permalink
[Kernel] partrial fix of forth.c (#155)
Browse files Browse the repository at this point in the history
Approved!
  • Loading branch information
NDRAEY authored Aug 11, 2024
2 parents fdfdb11 + 824a549 commit 49a6c1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/toys/forth.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ Cell CCompare( void * caddr1 , Cell len1 , void * caddr2 , Cell len2) {
if (len1 > len2) return 1;

// auto cmpResult = std::memcmp(caddr1, caddr2, len1);
auto cmpResult = memcasecmp(caddr1, caddr2, len1);
auto int cmpResult = memcasecmp(caddr1, caddr2, len1);

if (cmpResult < 0) return -1;
if (cmpResult > 0) return 1;
Expand Down Expand Up @@ -1263,7 +1263,7 @@ void LastKey()

void ChLastKey()
{
static lgetCharRaw = 0;
static int lgetCharRaw = 0;
*--Stack= Tos;
do{
while(Tos==lgetCharRaw) Tos = getCharRaw() ;
Expand Down

0 comments on commit 49a6c1f

Please sign in to comment.