1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-11 04:52:21 +02:00

Fixed -0x80000000'00000000 constant issue

This commit is contained in:
Brian Fiete 2019-12-05 06:50:08 -08:00
parent d13d3ed3f8
commit 355fd34c0b
3 changed files with 9 additions and 10 deletions

View file

@ -296,6 +296,8 @@ namespace IDE.ui
{ {
if (mCurFindIdx == -1) if (mCurFindIdx == -1)
return; return;
if (!mFoundMatches)
return;
String findText = scope String(); String findText = scope String();
mFindEditWidget.GetText(findText); mFindEditWidget.GetText(findText);
if (findText.Length == 0) if (findText.Length == 0)
@ -384,8 +386,6 @@ namespace IDE.ui
String findTextUpper = scope String(findText); String findTextUpper = scope String(findText);
findTextUpper.ToUpper(); findTextUpper.ToUpper();
Debug.WriteLine("Before: mCurFindIdx:{} mCurFindStart:{} mCurFindCount:{}", mCurFindIdx, mCurFindStart, mCurFindCount);
if ((mCurFindIdx == -1) && (mSelectionStart != null)) if ((mCurFindIdx == -1) && (mSelectionStart != null))
{ {
mCurFindIdx = mSelectionStart.mIndex - 1; mCurFindIdx = mSelectionStart.mIndex - 1;
@ -460,11 +460,6 @@ namespace IDE.ui
mCurFindStart = mCurFindIdx; mCurFindStart = mCurFindIdx;
} }
defer
{
Debug.WriteLine("After: mCurFindIdx:{} mCurFindStart:{} mCurFindCount:{}", mCurFindIdx, mCurFindStart, mCurFindCount);
}
if (dir < 0) if (dir < 0)
{ {
int32 checkOfs = (mCurFindCount == 0) ? 1 : 0; int32 checkOfs = (mCurFindCount == 0) ? 1 : 0;

View file

@ -1030,7 +1030,10 @@ void COFF::CvParseMembers(DbgType* parentType, int tagIdx, bool ipi)
isConst = true; isConst = true;
if (cPtr[1] == '_') if (cPtr[1] == '_')
constVal = -atoll(cPtr + 2); {
cPtr[1] = '-';
constVal = atoll(cPtr + 1);
}
else else
constVal = atoll(cPtr + 1); constVal = atoll(cPtr + 1);
*cPtr = 0; *cPtr = 0;
@ -2720,8 +2723,9 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
{ {
if (cPtr[1] == '_') if (cPtr[1] == '_')
{ {
cPtr[1] = '-';
isConst = true; isConst = true;
constVal = -atoll(cPtr + 2); constVal = atoll(cPtr + 1);
*cPtr = 0; *cPtr = 0;
} }
else if ((cPtr[1] >= '0') && (cPtr[1] <= '9')) else if ((cPtr[1] >= '0') && (cPtr[1] <= '9'))

View file

@ -6454,7 +6454,7 @@ BfAstNode* BfReducer::ReadTypeMember(BfAstNode* node, int depth)
} }
else if (nextToken->GetToken() == BfToken_LParen) else if (nextToken->GetToken() == BfToken_LParen)
{ {
Fail("Method name, 'this', or '~this' expected", node); Fail("Method return type expected", node);
nameIdentifier = BfNodeDynCast<BfIdentifierNode>(origNode); nameIdentifier = BfNodeDynCast<BfIdentifierNode>(origNode);
if (nameIdentifier != NULL) if (nameIdentifier != NULL)