diff options
author | sem <sem@FreeBSD.org> | 2007-01-28 22:47:30 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2007-01-28 22:47:30 +0800 |
commit | ae6e67e321fa2ac307bd5e6c1513a1e56c240fab (patch) | |
tree | 1b9c11d0314438e42f6988c4ea465d3760ef6deb /databases/dbconnect | |
parent | 163fb4cae7301fd7addea54015c489d38d77dc75 (diff) | |
download | freebsd-ports-gnome-ae6e67e321fa2ac307bd5e6c1513a1e56c240fab.tar.gz freebsd-ports-gnome-ae6e67e321fa2ac307bd5e6c1513a1e56c240fab.tar.zst freebsd-ports-gnome-ae6e67e321fa2ac307bd5e6c1513a1e56c240fab.zip |
- Fix build with gcc 4.1
Reported by: kris mail
Diffstat (limited to 'databases/dbconnect')
-rw-r--r-- | databases/dbconnect/files/patch-src-base-baseValue.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/databases/dbconnect/files/patch-src-base-baseValue.cpp b/databases/dbconnect/files/patch-src-base-baseValue.cpp new file mode 100644 index 000000000000..29d1a212fbb9 --- /dev/null +++ b/databases/dbconnect/files/patch-src-base-baseValue.cpp @@ -0,0 +1,30 @@ +--- src/base/baseValue.cpp.orig Sun Jan 28 14:13:03 2007 ++++ src/base/baseValue.cpp Sun Jan 28 14:14:42 2007 +@@ -49,11 +49,11 @@ + base = 10;
+
+ // Only convert the first valid chars.
+- char *end = (char*)((int)nptr + strlen(nptr)-1);
++ char *end = (char*)((long)nptr + strlen(nptr)-1);
+ for (i=0; i<strlen(nptr); i++)
+ if (!isdigit(nptr[i]) && nptr[i] != '+' && nptr[i] != '-')
+ {
+- end = (char*)((int)nptr + i -1);
++ end = (char*)((long)nptr + i -1);
+ break;
+ }
+
+@@ -91,11 +91,11 @@ + base = 10;
+
+ //Only convert the first valid chars.
+- char *end = (char*)((int)nptr + strlen(nptr)-1);
++ char *end = (char*)((long)nptr + strlen(nptr)-1);
+ for (i=0; i<strlen(nptr); i++)
+ if (!isdigit(nptr[i]) && nptr[i] != '+')
+ {
+- end = (char*)((int)nptr + i -1);
++ end = (char*)((long)nptr + i -1);
+ break;
+ }
+
|