Browse Source

Patch from bug #17303:
- C char mapped to shortint instead of char
- added comments to data types to be clear (32 vs. 64 bit env.)

git-svn-id: trunk@20637 -

michael 13 years ago
parent
commit
4e923eca65
1 changed files with 6 additions and 6 deletions
  1. 6 6
      packages/dblib/src/dblib.pp

+ 6 - 6
packages/dblib/src/dblib.pp

@@ -163,13 +163,13 @@ type
   ULONG=longword;
   ULONG=longword;
 
 
   // DB-Library datatypes
   // DB-Library datatypes
-  DBCHAR=char;
-  DBTINYINT=byte;
-  DBSMALLINT=smallint;
-  DBINT=longint;
-	DBUSMALLINT=word;
-  DBFLT8=double;
+  DBCHAR=shortint;
   DBBIT=byte;
   DBBIT=byte;
+  DBTINYINT=byte;
+  DBSMALLINT=smallint;   // 16-bit int (short)
+  DBUSMALLINT=word;      // 16-bit unsigned int (unsigned short)
+  DBINT=longint;         // 32-bit int (int)
+  DBFLT8=double;         // 64-bit real (double)
   DBBINARY=byte;
   DBBINARY=byte;
 
 
   {$PACKRECORDS C}
   {$PACKRECORDS C}