diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-04-05 21:30:21 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-04-05 21:30:21 +0000 |
commit | 07409e015252427f5ec1d8889bbfb78cf39d061d (patch) | |
tree | 0bf440cf49a586dd6e874ecb4fd0aa851fe03d83 /ext/Cwd/Cwd.xs | |
parent | 5b279f8b9f38ac6332e7ddbcac2b8bf949abe47c (diff) | |
download | perl-07409e015252427f5ec1d8889bbfb78cf39d061d.tar.gz |
Add casting to allow g++ (3.3.5) to compile the core code.
A C++ compiler produces lots of warnings that are probably valid
concerns to investigate.
p4raw-id: //depot/perl@24170
Diffstat (limited to 'ext/Cwd/Cwd.xs')
-rw-r--r-- | ext/Cwd/Cwd.xs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/Cwd/Cwd.xs b/ext/Cwd/Cwd.xs index 97c583ff53..e7323ab95b 100644 --- a/ext/Cwd/Cwd.xs +++ b/ext/Cwd/Cwd.xs @@ -417,7 +417,7 @@ PPCODE: char *path; char buf[MAXPATHLEN]; - path = pathsv ? SvPV_nolen(pathsv) : "."; + path = pathsv ? SvPV_nolen(pathsv) : (char *)"."; if (bsd_realpath(path, buf)) { sv_setpvn(TARG, buf, strlen(buf)); |