Index: /branches/eam_branches/ohana.20150429/src/libfits/table/F_get_column.c
===================================================================
--- /branches/eam_branches/ohana.20150429/src/libfits/table/F_get_column.c	(revision 38324)
+++ /branches/eam_branches/ohana.20150429/src/libfits/table/F_get_column.c	(revision 38325)
@@ -133,4 +133,6 @@
     }
   }
+
+  // check that we supplied a valid type
 
   *Ncol = Nval;
Index: /branches/eam_branches/ohana.20150429/src/libfits/table/F_set_column.c
===================================================================
--- /branches/eam_branches/ohana.20150429/src/libfits/table/F_set_column.c	(revision 38324)
+++ /branches/eam_branches/ohana.20150429/src/libfits/table/F_set_column.c	(revision 38325)
@@ -137,4 +137,22 @@
     for (i = 0; i < Nval*Nrow; i++, Pin+=Nbytes, Pout+=Nbytes) {
       *(double *)Pout = (*(double *)Pin - Bzero) / Bscale;
+# ifdef BYTE_SWAP
+      SWAP_DBLE;
+# endif
+    }
+  }
+
+  if (!strcmp (type, "var")) {
+    for (i = 0; i < Nval*Nrow; i++, Pin+=Nbytes, Pout+=Nbytes) {
+      *(int *)Pout = *(int *)Pin;
+# ifdef BYTE_SWAP
+      SWAP_WORD;
+# endif
+    }
+  }
+
+  if (!strcmp (type, "var64")) {
+    for (i = 0; i < Nval*Nrow; i++, Pin+=Nbytes, Pout+=Nbytes) {
+      *(int *)Pout = *(int *)Pin;
 # ifdef BYTE_SWAP
       SWAP_DBLE;
