From 7676104f4c97ed8da2e667616cca2edf18903931 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 22 Jun 2016 19:19:00 +0200 Subject: [PATCH] Fix error compiling with pre-C++11 compilers --- panda/src/downloader/urlSpec.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/downloader/urlSpec.cxx b/panda/src/downloader/urlSpec.cxx index 46504f96d1..09769f3693 100644 --- a/panda/src/downloader/urlSpec.cxx +++ b/panda/src/downloader/urlSpec.cxx @@ -47,7 +47,7 @@ URLSpec(const URLSpec &url, const Filename &path) { string dirname = get_path(); // Check if the path already ends in a slash. - if (!dirname.empty() && dirname.back() == '/') { + if (!dirname.empty() && dirname[dirname.size() - 1] == '/') { if (path[0] == '/') { // And the filename begins with one. Remove the extra slash. dirname.resize(dirname.size() - 1);