Skip to content

Commit

Permalink
fix 2 -Wnon-literal-null-conversion errors
Browse files Browse the repository at this point in the history
also update greg.c
  • Loading branch information
Reini Urban committed Mar 13, 2014
1 parent 6413e37 commit 33e019c
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 257 deletions.
2 changes: 1 addition & 1 deletion core/objmodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void potion_add_metaclass(Potion *P, vPN(Vtable) vt) {
meta->methods = (struct PNTable *)potion_table_empty(P);
meta->ctor = PN_FUNC(potion_no_call, 0);
PN_VTABLE(meta->type) = (PN)meta;
meta->meta = PN_NIL;
meta->meta = NULL;
PN_TOUCH(P->vts);
}
/// create a non-user type, derived from self
Expand Down
4 changes: 2 additions & 2 deletions front/potion.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// the Potion!
//
// (c) 2008 why the lucky stiff, the freelance professor
// (c) 2013 by perl11 org
// (c) 2013-2014 by perl11 org
//
#include <stdio.h>
#include <sys/stat.h>
Expand Down Expand Up @@ -392,7 +392,7 @@ int main(int argc, char *argv[]) {
for (; i < argc; i++) PN_PUSH(args, PN_STR(argv[i]));
potion_define_global(P, PN_STR("argv"), args);
if (buf != PN_NIL) {
potion_cmd_exec(P, buf, NULL, compile, PN_NIL);
potion_cmd_exec(P, buf, NULL, compile, "");
} else {
potion_cmd_exec(P, buf, fn, compile, addmodules);
}
Expand Down
Loading

0 comments on commit 33e019c

Please sign in to comment.