diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2013-11-02 20:17:28 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2013-11-02 20:17:28 +0000 |
commit | c906e171d95040fe50a5dca58c48b33429c93ff3 (patch) | |
tree | c2988a153e80dc418d33f7a5ef000604c58d73c7 /sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp | |
parent | - Add p5-Types-Serialiser 0.03 (diff) |
- update to 1.4.0
- patch to unbreak with clang and libc++
- LICENSE is GPLv3 due to a file polluting
- remove article from COMMENT
- convert to STAGEDIR
- new LIB_DEPENDS syntax
- option to build BEViewer (java frontend)
PR: ports/183101
Approved by: maintainer timeout (2 weeks)
Diffstat (limited to 'sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp')
-rw-r--r-- | sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp b/sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp new file mode 100644 index 000000000000..b13b17aca364 --- /dev/null +++ b/sysutils/bulk_extractor/files/patch-src__scan_exiv2.cpp @@ -0,0 +1,24 @@ +--- ./src/scan_exiv2.cpp.orig 2013-08-18 16:39:17.000000000 +0000 ++++ ./src/scan_exiv2.cpp 2013-10-19 13:09:32.000000000 +0000 +@@ -68,7 +68,7 @@ + * Used for helping to convert libexiv2's GPS format to decimal lat/long + */ + +-static double stod(string s) ++static double be13stod(string s) + { + double d=0; + sscanf(s.c_str(),"%lf",&d); +@@ -78,9 +78,9 @@ + static double rational(string s) + { + std::vector<std::string> parts = split(s,'/'); +- if(parts.size()!=2) return stod(s); // no slash, so return without +- double top = stod(parts[0]); +- double bot = stod(parts[1]); ++ if(parts.size()!=2) return be13stod(s); // no slash, so return without ++ double top = be13stod(parts[0]); ++ double bot = be13stod(parts[1]); + return bot>0 ? top / bot : top; + } + |