// do not set currentline to Line\r
//\r
if (Count <= 0) {\r
- AbsCount = -Count;\r
+ AbsCount = (UINTN)ABS(Count);\r
Line = _HLineRetreat (AbsCount);\r
} else {\r
- Line = _HLineAdvance (Count);\r
+ Line = _HLineAdvance ((UINTN)Count);\r
}\r
\r
return Line;\r
// >0: advance\r
//\r
if (Count <= 0) {\r
- AbsCount = -Count;\r
+ AbsCount = (UINTN)ABS(Count);\r
Line = _HLineRetreat (AbsCount);\r
} else {\r
- Line = _HLineAdvance (Count);\r
+ Line = _HLineAdvance ((UINTN)Count);\r
}\r
\r
if (Line == NULL) {\r
Lenp = StrLen (Pat);\r
Lens = StrLen (Str);\r
\r
- Failure = AllocateZeroPool (Lenp * sizeof (INTN));\r
+ Failure = AllocateZeroPool ((UINTN)(Lenp * sizeof (INTN)));\r
+ if (Failure == NULL) {\r
+ return 0;\r
+ }\r
Failure[0] = -1;\r
for (j = 1; j < Lenp; j++) {\r
i = Failure[j - 1];\r