summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2001-05-30 17:49:33 +0000
committerSterling Hughes <sterling@php.net>2001-05-30 17:49:33 +0000
commit439038759bb60dc3ca14d70115f5a7c39af5f240 (patch)
treeb6cc34c80fd1e0202e414687a2da62ea4b07edda
parentc9ce7fcfc33db8efd0787e00b52423b931fe8932 (diff)
downloadphp-git-439038759bb60dc3ca14d70115f5a7c39af5f240.tar.gz
should fix compile warnings on win32
-rw-r--r--ext/oci8/oci8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 5000285502..da209afa39 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -2840,7 +2840,7 @@ PHP_FUNCTION(ocisavelob)
if (offparam == -1) {
offset = curloblen;
- } else if (offparam >= curloblen) {
+ } else if ((ub4) offparam >= curloblen) {
php_error(E_WARNING, "Offset smaller than current LOB-Size - appending");
offset = curloblen;
} else {
@@ -3131,7 +3131,7 @@ PHP_FUNCTION(ociwritelobtofile)
}
if (fp != -1) {
- if (write(fp,buffer,toread) != toread) {
+ if ((ub4) write(fp,buffer,toread) != toread) {
php_error(E_WARNING, "cannot write file!");
goto bail;
}