Corrected unfortunate typo from today's previous commit, and

corrected a wrong typecasting that results in a compile warning.
This commit is contained in:
Tim Edwards 2020-05-10 20:01:05 -04:00
parent f0d2c8db0f
commit 838591bdf2
2 changed files with 2 additions and 2 deletions

View File

@ -1498,7 +1498,7 @@ CIFReadCellCleanup(filetype)
UndoDisable();
/* cifplanes should be valid, but don't crash magic if not */
if (cifplanes != (ClientData)CLIENTDEFAULT)
if (cifplanes != (Plane **)CLIENTDEFAULT)
{
for (pNum = 0; pNum < MAXCIFRLAYERS; pNum++)

View File

@ -1669,7 +1669,7 @@ size_error:
LefEndStatement(f);
break;
case LEF_ORIGIN:
if (LefReadLefPoint(f, x, y) != 0) goto origin_error;
if (LefReadLefPoint(f, &x, &y) != 0) goto origin_error;
lefBBox.r_xbot = -(int)roundf(x / oscale);
lefBBox.r_ybot = -(int)roundf(y / oscale);
if (has_size)