Commits

Ceri Stagg committed 3867fc2

Ensure all types match using visual inspection

Comments (0)

Files changed (1)

svmlight/svmlight.py

 class SVECTOR(Structure):
 	_fields_ = [("words",       POINTER(WORD)),
 		    ("twonorm_sq",  c_double),
-		    ("userdefined", c_char),
+		    ("userdefined", POINTER(c_char)),
 		    ("kernel_id",   c_long),
 		    ("next",        POINTER(SVECTOR),
 		    ("factor",      c_double)]
                 ("deactnum",        c_long),
                 ("a_history",       POINTER( POINTER( c_double ) ) ),
                 ("maxhistory",      c_long),
-                ("last_a",          POINTER( c_long ) ),
-                ("last_lin",        POINTER( c_long ) ) ]
+                ("last_a",          POINTER( c_double ) ),
+                ("last_lin",        POINTER( c_double ) ) ]
 
 
 if __name__ == "__main__":