aboutsummaryrefslogtreecommitdiffstats
path: root/databases/dbconnect
diff options
context:
space:
mode:
authorsem <sem@FreeBSD.org>2007-01-28 22:47:30 +0800
committersem <sem@FreeBSD.org>2007-01-28 22:47:30 +0800
commitae6e67e321fa2ac307bd5e6c1513a1e56c240fab (patch)
tree1b9c11d0314438e42f6988c4ea465d3760ef6deb /databases/dbconnect
parent163fb4cae7301fd7addea54015c489d38d77dc75 (diff)
downloadfreebsd-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.cpp30
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;
+ }
+