]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/d/dmd/root/filename.c
d: Merge upstream dmd 48d704f08
[thirdparty/gcc.git] / gcc / d / dmd / root / filename.c
index 82fcd3c31c765d2ec24e274ca9fba801a0a106f2..88391df0f28473264a5d941c5e17dad16bff81c6 100644 (file)
@@ -425,7 +425,7 @@ const char *FileName::searchPath(Strings *path, const char *name, bool cwd)
     if (path)
     {
 
-        for (size_t i = 0; i < path->dim; i++)
+        for (size_t i = 0; i < path->length; i++)
         {
             const char *p = (*path)[i];
             const char *n = combine(p, name);
@@ -492,7 +492,7 @@ const char *FileName::safeSearchPath(Strings *path, const char *name)
         /* Each path is converted to a cannonical name and then a check is done to see
          * that the searched name is really a child one of the the paths searched.
          */
-        for (size_t i = 0; i < path->dim; i++)
+        for (size_t i = 0; i < path->length; i++)
         {
             const char *cname = NULL;
             const char *cpath = canonicalName((*path)[i]);