From 990fbde03de08b471e27567bc0380b5bcaffb202 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Fri, 4 Aug 2000 13:32:54 +0200
Subject: [PATCH] Fixed a few type errors.

Rev: src/modules/Odbc/odbc_result.c:1.20
Rev: src/modules/Odbc/precompiled_odbc.h:1.10
---
 src/modules/Odbc/odbc_result.c      | 12 ++++++------
 src/modules/Odbc/precompiled_odbc.h |  4 ++--
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/modules/Odbc/odbc_result.c b/src/modules/Odbc/odbc_result.c
index f1f7fc793a..cab3f2c97a 100644
--- a/src/modules/Odbc/odbc_result.c
+++ b/src/modules/Odbc/odbc_result.c
@@ -1,5 +1,5 @@
 /*
- * $Id: odbc_result.c,v 1.19 2000/07/28 07:13:58 hubbe Exp $
+ * $Id: odbc_result.c,v 1.20 2000/08/04 11:32:43 grubba Exp $
  *
  * Pike  interface to ODBC compliant databases
  *
@@ -16,7 +16,7 @@
 #include "config.h"
 #endif /* HAVE_CONFIG_H */
 
-RCSID("$Id: odbc_result.c,v 1.19 2000/07/28 07:13:58 hubbe Exp $");
+RCSID("$Id: odbc_result.c,v 1.20 2000/08/04 11:32:43 grubba Exp $");
 
 #include "interpret.h"
 #include "object.h"
@@ -138,7 +138,7 @@ static void odbc_fix_fields(void)
     int nbits;
     SWORD name_len;
     SWORD sql_type;
-    UDWORD precision;
+    SQLULEN precision;
     SWORD scale;
     SWORD nullable;
 
@@ -148,12 +148,12 @@ static void odbc_fix_fields(void)
 				      buf, buf_size, &name_len,
 				      &sql_type, &precision, &scale, &nullable),
 		       0);
-      if (name_len < (int)buf_size) {
+      if (name_len < (ptrdiff_t)buf_size) {
 	break;
       }
       do {
 	buf_size *= 2;
-      } while (name_len >= (int)buf_size);
+      } while (name_len >= (ptrdiff_t)buf_size);
       if (!(buf = alloca(buf_size))) {
 	error("odbc_fix_fields(): Out of memory\n");
       }
@@ -368,7 +368,7 @@ static void f_fetch_row(INT32 args)
 	/* BLOB */
 	int num_strings = 0;
 	char buf[BLOB_BUFSIZ+1];
-	SDWORD len = 0;
+	SQLLEN len = 0;
 
 	while(1) {
 	  code = SQLGetData(PIKE_ODBC_RES->hstmt, i+1,
diff --git a/src/modules/Odbc/precompiled_odbc.h b/src/modules/Odbc/precompiled_odbc.h
index c62c04c007..60f9d726ef 100644
--- a/src/modules/Odbc/precompiled_odbc.h
+++ b/src/modules/Odbc/precompiled_odbc.h
@@ -1,5 +1,5 @@
 /*
- * $Id: precompiled_odbc.h,v 1.9 1999/04/08 23:35:32 marcus Exp $
+ * $Id: precompiled_odbc.h,v 1.10 2000/08/04 11:32:54 grubba Exp $
  *
  * Pike interface to ODBC compliant databases.
  *
@@ -75,7 +75,7 @@ struct precompiled_odbc_result {
   struct precompiled_odbc *odbc;
   HSTMT hstmt;
   SWORD num_fields;
-  SDWORD num_rows;
+  SQLLEN num_rows;
   struct array *fields;
   struct field_info *field_info;
 };
-- 
GitLab