Skip to content

Commit

Permalink
Fix pyobject's C-procs for currPack->libname==NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderdreyer committed Dec 10, 2012
1 parent 9d0560c commit 4fc65f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Singular/pyobject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ blackbox* pyobject_blackbox(int& tok) {


#define PYOBJECT_ADD_C_PROC(name) \
add_C_proc(currPack->libname, (char*)#name, FALSE, name);
add_C_proc((currPack->libname? currPack->libname: ""), (char*)#name, FALSE, name);

typedef BOOLEAN (*func_type)(leftv, leftv);
void pyobject_init(int (*add_C_proc)(const char*, const char*, BOOLEAN,
Expand Down

0 comments on commit 4fc65f5

Please sign in to comment.