Description: hid_t is now 64bit
 This is a temporary hack that really works only on 64-bit arches.
 A better fix is under way.
Author: Thibaut Paumard <thibaut@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842817
Forwarded: not-needed
Last-Update: 2016-11-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/hdf5.c
+++ b/hdf5.c
@@ -59,9 +59,9 @@
   long mode = YGetInteger(sp-nArgs+2);
   long create_id = YGetInteger(sp-nArgs+3);
   long access_id = YGetInteger(sp-nArgs+4);
-  int status;
-  status=H5Fcreate(filename, (uint) mode, (hid_t) create_id, (hid_t) access_id);
-  PushIntValue(status);
+  hid_t fid;
+  fid=H5Fcreate(filename, (uint) mode, (hid_t) create_id, (hid_t) access_id);
+  PushLongValue(fid);
 }
 
 void Y__H5Fopen(int nArgs)
@@ -69,18 +69,18 @@
   char *filename = YGetString(sp-nArgs+1);
   long flags = YGetInteger(sp-nArgs+2);
   long access_id = YGetInteger(sp-nArgs+3);
-  int status;
-  status=H5Fopen(filename, (uint) flags, (hid_t) access_id);
-  PushIntValue(status);
+  hid_t fid;
+  fid=H5Fopen(filename, (uint) flags, (hid_t) access_id);
+  PushLongValue(fid);
 }
 
 void Y__H5Fclose(int nArgs)
 {
   long file_id = YGetInteger(sp-nArgs+1);
-  int status;
+  herr_t status;
   H5Fflush((hid_t) file_id, H5F_SCOPE_LOCAL);
   status=H5Fclose((hid_t) file_id);
-  PushIntValue(status);
+  PushLongValue(status);
 }
 
 
@@ -145,7 +145,7 @@
   long size = YGetInteger(sp-nArgs+3);
   char *value = YGetString(sp-nArgs+4);
 
-  PushIntValue((long)H5Gget_linkval((hid_t) loc_id, gname, (size_t)size, value));
+  PushLongValue((long)H5Gget_linkval((hid_t) loc_id, gname, (size_t)size, value));
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -155,7 +155,7 @@
   long loc_id = YGetInteger(sp-nArgs+1);
   char *gname = YGetString(sp-nArgs+2);
 
-  PushIntValue((long)H5Gopen((hid_t)loc_id, gname));
+  PushLongValue((long)H5Gopen((hid_t)loc_id, gname));
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -164,7 +164,7 @@
 {
   long gid = YGetInteger(sp-nArgs+1);
 
-  PushIntValue((long)H5Gclose((hid_t)gid));
+  PushLongValue((long)H5Gclose((hid_t)gid));
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -175,7 +175,7 @@
   char *gname = YGetString(sp-nArgs+2);
   long size_hint = YGetInteger(sp-nArgs+3);
 
-  PushIntValue((long)H5Gcreate((hid_t)loc_id, gname, (size_t)size_hint));
+  PushLongValue((long)H5Gcreate((hid_t)loc_id, gname, (size_t)size_hint));
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -186,7 +186,7 @@
   hsize_t num_obj=0;
 
   H5Gget_num_objs((hid_t)gid, &num_obj);
-  PushIntValue((long)num_obj);
+  PushLongValue((long)num_obj);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -208,7 +208,7 @@
   long loc_id = YGetInteger(sp-nArgs+1);
   long idx    = YGetInteger(sp-nArgs+2);
 
-  PushIntValue((long)H5Gget_objtype_by_idx((hid_t)loc_id, (hsize_t)idx));
+  PushLongValue((long)H5Gget_objtype_by_idx((hid_t)loc_id, (hsize_t)idx));
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -227,7 +227,7 @@
   objnum[0] = statbuf.objno[0];
   objnum[1] = statbuf.objno[1];
 
-  PushIntValue((long)statbuf.type);
+  PushLongValue((long)statbuf.type);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -240,7 +240,7 @@
   long new_loc_id  = YGetInteger(sp-nArgs+4);
   char *newname    = YGetString(sp-nArgs+5);
 
-  PushIntValue((long)H5Glink2((hid_t)curr_loc_id, curname, 
+  PushLongValue((long)H5Glink2((hid_t)curr_loc_id, curname, 
 			      (H5G_link_t)link_type, (hid_t)new_loc_id, 
 			      newname));
   PopTo(sp-nArgs-1);
@@ -252,7 +252,7 @@
   long loc_id = YGetInteger(sp-nArgs+1);
   char *name    = YGetString(sp-nArgs+2);
 
-  PushIntValue((long)H5Gunlink((hid_t)loc_id, name)); 
+  PushLongValue((long)H5Gunlink((hid_t)loc_id, name)); 
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -261,7 +261,7 @@
 {
   long cls_id = YGetInteger(sp-nArgs+1);
 
-  PushIntValue((long)H5Pcreate((hid_t)cls_id)); 
+  PushLongValue((long)H5Pcreate((hid_t)cls_id)); 
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -271,7 +271,7 @@
   long plist = YGetInteger(sp-nArgs+1);
   long level = YGetInteger(sp-nArgs+2);
 
-  PushIntValue((long)H5Pset_deflate((hid_t)plist,(int)level)); 
+  PushLongValue((long)H5Pset_deflate((hid_t)plist,(int)level)); 
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -289,13 +289,14 @@
 
   hsize_t hdim[5];
 
-  long status,i;
+  long i;
+  herr_t status;
 
   for (i=0;i<ndims;i++) hdim[i]=(hsize_t)dim[i];
 
   status=(long)H5Pset_chunk((hid_t)plist,(int)ndims, hdim);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -309,12 +310,12 @@
   long space_id=YGetInteger(sp-nArgs+4);
   long create_plist=YGetInteger(sp-nArgs+5);
   
-  long status;
+  hid_t id;
 
-  status=(long)H5Acreate((hid_t)loc_id, name, (hid_t)type_id, 
+  id=H5Acreate((hid_t)loc_id, name, (hid_t)type_id, 
 			 (hid_t)space_id,(hid_t)create_plist);
 
-  PushIntValue(status);
+  PushLongValue(id);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -326,11 +327,11 @@
   long loc_id=YGetInteger(sp-nArgs+1);
   char *name=YGetString(sp-nArgs+2);
   
-  long status;
+  herr_t status;
 
-  status=(long)H5Adelete((hid_t)loc_id, name);
+  status=H5Adelete((hid_t)loc_id, name);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -346,7 +347,7 @@
 
   status=(long)H5Aget_num_attrs((hid_t)loc_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -357,11 +358,11 @@
 {
   long attr_id=YGetInteger(sp-nArgs+1);
   
-  long status;
+  hid_t id;
 
-  status=(long)H5Aget_type((hid_t)attr_id);
+  id=H5Aget_type((hid_t)attr_id);
 
-  PushIntValue(status);
+  PushLongValue(id);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -372,11 +373,11 @@
 {
   long attr_id=YGetInteger(sp-nArgs+1);
   
-  long status;
+  hid_t id;
 
-  status=(long)H5Aget_space((hid_t)attr_id);
+  id=H5Aget_space((hid_t)attr_id);
 
-  PushIntValue(status);
+  PushLongValue(id);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -391,7 +392,7 @@
 
   status=(long)H5Aget_name((hid_t)attr_id, (size_t)buf_size, buf);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -407,7 +408,7 @@
 
   status=(long)H5Aopen_idx((hid_t)loc_id, (unsigned int)idx);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -423,7 +424,7 @@
 
   status=(long)H5Aopen_name((hid_t)loc_id, name);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -439,7 +440,7 @@
 
   status=(long)H5Aread((hid_t)attr_id, (hid_t)mem_type_id, yarg_sp(0));
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -453,7 +454,7 @@
 
   status=(long)H5Awrite((hid_t)attr_id, (hid_t)mem_type_id, yarg_sp(0));
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -468,7 +469,7 @@
 
   status=(long)H5Aclose((hid_t)attr_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -483,7 +484,7 @@
 
   status=(long)H5Dclose((hid_t)dataset_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -504,7 +505,7 @@
   status=(long)H5Dcreate((hid_t)loc_id, name, (hid_t)type_id, 
 			 (hid_t)space_id,(hid_t)create_plist_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -520,7 +521,7 @@
 
   status=(long)H5Dopen((hid_t)loc_id, name);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -535,7 +536,7 @@
 
   status=(long)H5Dget_space((hid_t)dataset_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -550,7 +551,7 @@
 
   status=(long)H5Dget_type((hid_t)dataset_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -572,7 +573,7 @@
 		       (hid_t)mem_space_id, (hid_t)file_space_id, 
 		       (hid_t)xfer_plist_id, yarg_sp(0));
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -594,7 +595,7 @@
 			(hid_t)mem_space_id, (hid_t)file_space_id, 
 			(hid_t)xfer_plist_id, yarg_sp(0));
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -609,7 +610,7 @@
 
   status=(long)H5Sclose((hid_t)space_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -624,7 +625,7 @@
 
   status=(long)H5Screate((H5S_class_t)type);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -639,7 +640,7 @@
 
   status=(long)H5Sget_simple_extent_ndims((hid_t)space_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -654,7 +655,7 @@
 
   status=(long)H5Sget_simple_extent_type((hid_t)space_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -686,7 +687,7 @@
 
   status=(long)H5Screate_simple((int)rank, hdims, hmaxdims);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -711,7 +712,7 @@
   rank=(long)H5Sget_simple_extent_ndims((hid_t)space_id);
 
   if (rank<0) {
-    PushIntValue(rank);
+    PushLongValue(rank);
     PopTo(sp-nArgs-1);
     Drop(nArgs);
   }
@@ -725,7 +726,7 @@
     } else { maxdims[i] = (long)0; }
   }
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -740,7 +741,7 @@
 
   status=(long)H5Tcopy((hid_t)type_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -756,7 +757,7 @@
 
   status=(long)H5Tget_class((hid_t)type_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -771,7 +772,7 @@
 
   status=(long)H5Tget_size((hid_t)type_id);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -788,7 +789,7 @@
 
   status=(long)H5Tset_cset((hid_t)type_id, (H5T_cset_t)cset);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -804,7 +805,7 @@
 
   status=(long)H5Tset_size((hid_t)type_id, (size_t)size);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -820,7 +821,7 @@
 
   status=(long)H5Tset_strpad((hid_t)type_id, (H5T_str_t)strpad);
 
-  PushIntValue(status);
+  PushLongValue(status);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
@@ -830,401 +831,401 @@
 
 void Y__H5T_C_S1(int nArgs)
 {
-  PushIntValue((long)H5T_C_S1);
+  PushLongValue((long)H5T_C_S1);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_NATIVE_CHAR(int nArgs)
 {
-  PushIntValue((long)H5T_NATIVE_CHAR);
+  PushLongValue((long)H5T_NATIVE_CHAR);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_NATIVE_SHORT(int nArgs)
 {
-  PushIntValue((long)H5T_NATIVE_SHORT);
+  PushLongValue((long)H5T_NATIVE_SHORT);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_NATIVE_INT(int nArgs)
 {
-  PushIntValue((long)H5T_NATIVE_INT);
+  PushLongValue((long)H5T_NATIVE_INT);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_NATIVE_LONG(int nArgs)
 {
-  PushIntValue((long)H5T_NATIVE_LONG);
+  PushLongValue((long)H5T_NATIVE_LONG);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_NATIVE_FLOAT(int nArgs)
 {
-  PushIntValue((long)H5T_NATIVE_FLOAT);
+  PushLongValue((long)H5T_NATIVE_FLOAT);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_NATIVE_DOUBLE(int nArgs)
 {
-  PushIntValue((long)H5T_NATIVE_DOUBLE);
+  PushLongValue((long)H5T_NATIVE_DOUBLE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_IEEE_F32BE(int nArgs)
 {
-  PushIntValue((long)H5T_IEEE_F32BE);
+  PushLongValue((long)H5T_IEEE_F32BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_IEEE_F32LE(int nArgs)
 {
-  PushIntValue((long)H5T_IEEE_F32LE);
+  PushLongValue((long)H5T_IEEE_F32LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_IEEE_F64BE(int nArgs)
 {
-  PushIntValue((long)H5T_IEEE_F64BE);
+  PushLongValue((long)H5T_IEEE_F64BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_IEEE_F64LE(int nArgs)
 {
-  PushIntValue((long)H5T_IEEE_F64LE);
+  PushLongValue((long)H5T_IEEE_F64LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I8BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I8BE);
+  PushLongValue((long)H5T_STD_I8BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I8LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I8LE);
+  PushLongValue((long)H5T_STD_I8LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I16BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I16BE);
+  PushLongValue((long)H5T_STD_I16BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I16LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I16LE);
+  PushLongValue((long)H5T_STD_I16LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I32BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I32BE);
+  PushLongValue((long)H5T_STD_I32BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I32LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I32LE);
+  PushLongValue((long)H5T_STD_I32LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I64BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I64BE);
+  PushLongValue((long)H5T_STD_I64BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_I64LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_I64LE);
+  PushLongValue((long)H5T_STD_I64LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U8BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U8BE);
+  PushLongValue((long)H5T_STD_U8BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U8LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U8LE);
+  PushLongValue((long)H5T_STD_U8LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U16BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U16BE);
+  PushLongValue((long)H5T_STD_U16BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U16LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U16LE);
+  PushLongValue((long)H5T_STD_U16LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U32BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U32BE);
+  PushLongValue((long)H5T_STD_U32BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U32LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U32LE);
+  PushLongValue((long)H5T_STD_U32LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U64BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U64BE);
+  PushLongValue((long)H5T_STD_U64BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_U64LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_U64LE);
+  PushLongValue((long)H5T_STD_U64LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B8BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B8BE);
+  PushLongValue((long)H5T_STD_B8BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B8LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B8LE);
+  PushLongValue((long)H5T_STD_B8LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B16BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B16BE);
+  PushLongValue((long)H5T_STD_B16BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B16LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B16LE);
+  PushLongValue((long)H5T_STD_B16LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B32BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B32BE);
+  PushLongValue((long)H5T_STD_B32BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B32LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B32LE);
+  PushLongValue((long)H5T_STD_B32LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B64BE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B64BE);
+  PushLongValue((long)H5T_STD_B64BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_B64LE(int nArgs)
 {
-  PushIntValue((long)H5T_STD_B64LE);
+  PushLongValue((long)H5T_STD_B64LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_STD_REF_OBJ(int nArgs)
 {
-  PushIntValue((long)H5T_STD_REF_OBJ);
+  PushLongValue((long)H5T_STD_REF_OBJ);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_UNIX_D32BE(int nArgs)
 {
-  PushIntValue((long)H5T_UNIX_D32BE);
+  PushLongValue((long)H5T_UNIX_D32BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_UNIX_D32LE(int nArgs)
 {
-  PushIntValue((long)H5T_UNIX_D32LE);
+  PushLongValue((long)H5T_UNIX_D32LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_UNIX_D64BE(int nArgs)
 {
-  PushIntValue((long)H5T_UNIX_D64BE);
+  PushLongValue((long)H5T_UNIX_D64BE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5T_UNIX_D64LE(int nArgs)
 {
-  PushIntValue((long)H5T_UNIX_D64LE);
+  PushLongValue((long)H5T_UNIX_D64LE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 void Y__H5P_DATASET_CREATE(int nArgs)
 {
-  PushIntValue((long)H5P_DATASET_CREATE);
+  PushLongValue((long)H5P_DATASET_CREATE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_NO_CLASS(int nArgs)
 {
-  PushIntValue((long)H5T_NO_CLASS);
+  PushLongValue((long)H5T_NO_CLASS);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_INTEGER(int nArgs)
 {
-  PushIntValue((long)H5T_INTEGER);
+  PushLongValue((long)H5T_INTEGER);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_FLOAT(int nArgs)
 {
-  PushIntValue((long)H5T_FLOAT);
+  PushLongValue((long)H5T_FLOAT);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_TIME(int nArgs)
 {
-  PushIntValue((long)H5T_TIME);
+  PushLongValue((long)H5T_TIME);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_STRING(int nArgs)
 {
-  PushIntValue((long)H5T_STRING);
+  PushLongValue((long)H5T_STRING);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_BITFIELD(int nArgs)
 {
-  PushIntValue((long)H5T_BITFIELD);
+  PushLongValue((long)H5T_BITFIELD);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_OPAQUE(int nArgs)
 {
-  PushIntValue((long)H5T_OPAQUE);
+  PushLongValue((long)H5T_OPAQUE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_COMPOUND(int nArgs)
 {
-  PushIntValue((long)H5T_COMPOUND);
+  PushLongValue((long)H5T_COMPOUND);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_REFERENCE(int nArgs)
 {
-  PushIntValue((long)H5T_REFERENCE);
+  PushLongValue((long)H5T_REFERENCE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_ENUM(int nArgs)
 {
-  PushIntValue((long)H5T_ENUM);
+  PushLongValue((long)H5T_ENUM);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_VLEN(int nArgs)
 {
-  PushIntValue((long)H5T_VLEN);
+  PushLongValue((long)H5T_VLEN);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5T_ARRAY(int nArgs)
 {
-  PushIntValue((long)H5T_ARRAY);
+  PushLongValue((long)H5T_ARRAY);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5G_UNKNOWN(int nArgs)
 {
-  PushIntValue((long)H5G_UNKNOWN);
+  PushLongValue((long)H5G_UNKNOWN);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5G_GROUP(int nArgs)
 {
-  PushIntValue((long)H5G_GROUP);
+  PushLongValue((long)H5G_GROUP);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5G_DATASET(int nArgs)
 {
-  PushIntValue((long)H5G_DATASET);
+  PushLongValue((long)H5G_DATASET);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5G_TYPE(int nArgs)
 {
-  PushIntValue((long)H5G_TYPE);
+  PushLongValue((long)H5G_TYPE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5G_LINK(int nArgs)
 {
-  PushIntValue((long)H5G_LINK);
+  PushLongValue((long)H5G_LINK);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5P_DEFAULT(int nArgs)
 {
-  PushIntValue((long)H5P_DEFAULT);
+  PushLongValue((long)H5P_DEFAULT);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 /*void Y__H5T_DEFAULT(int nArgs)
 {
-  PushIntValue((long)H5T_DEFAULT);
+  PushLongValue((long)H5T_DEFAULT);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
   }*/
 
 void Y__H5S_NO_CLASS(int nArgs)
 {
-  PushIntValue((long)H5S_NO_CLASS);
+  PushLongValue((long)H5S_NO_CLASS);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5S_SCALAR(int nArgs)
 {
-  PushIntValue((long)H5S_SCALAR);
+  PushLongValue((long)H5S_SCALAR);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
 
 void Y__H5S_SIMPLE(int nArgs)
 {
-  PushIntValue((long)H5S_SIMPLE);
+  PushLongValue((long)H5S_SIMPLE);
   PopTo(sp-nArgs-1);
   Drop(nArgs);
 }
