diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2007-01-28 14:47:30 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2007-01-28 14:47:30 +0000 |
commit | 80a2dcf0032d36306d7339de94344b21421e4669 (patch) | |
tree | 7545d05ccbd6f20f8b5e2e092f8fad6de334d669 /databases/dbconnect | |
parent | - Update to 5.5.2. (diff) |
- Fix build with gcc 4.1
Reported by: kris mail
Notes
Notes:
svn path=/head/; revision=183543
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;
+ }
+
|