changeset 1469:be15e75a3b9a default tip

cfield: Fixed compilation on Windows.
author Marcel Keller <mkeller@cs.au.dk>
date Thu, 22 Dec 2011 14:07:43 +0100
parents 361a7235b8a1
children
files doc/authors.txt viff/cfield.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/authors.txt	Tue Nov 02 13:06:28 2010 +0100
+++ b/doc/authors.txt	Thu Dec 22 14:07:43 2011 +0100
@@ -16,6 +16,7 @@
 * Tord Reistad
 * Ivan Damgård
 * Janus Dam Nielsen <janus.nielsen@alexandra.dk>
+* Berry Schoenmakers
 
 If you have been forgotten, then please checkout `the repository`_,
 add yourself to the list and `send us a patch`_!
--- a/viff/cfield.c	Tue Nov 02 13:06:28 2010 +0100
+++ b/viff/cfield.c	Thu Dec 22 14:07:43 2011 +0100
@@ -943,7 +943,7 @@
     0,                          /*tp_methods*/
     0,                          /*tp_members*/
     0,                          /*tp_getset*/
-    &PyType_Type,               /*tp_base*/
+    0,                          /*tp_base*/
     0,                          /*tp_dict*/
     0,                          /*tp_descr_get*/
     0,                          /*tp_descr_set*/
@@ -1050,6 +1050,7 @@
 
     cfield_GF256_generate_tables();
 
+    cfield_GFTypeType.tp_base = &PyType_Type;
     PyType_Ready(&cfield_GFTypeType);
 
     cfield_field_cache = PyDict_New();