Fix 2011/goren for macOS (64-bit)
On a hunch I wondered if the ints in function S() needed to be long and it did indeed solve the problem. Tested it under linux and then I noticed the author stated that it does not work for 64-bits (except that it does work in 64-bit linux). Therefore I test compiled it with linux as 32-bit too and both work. I also noticed in git diff that it had CRLF line endings so I removed those as well.
This commit is contained in:
1 parent
5b25b77c9b
commit
036ddbd4f4
2 files changed
+34
-24
No files matched your search
+20
-20
@@ -1,20 +1,20 @@
|
||||
typedef unsigned char t;t*F="%c",l[]="|\\/=_ \n](.\0(),*(.(=(}*.)[[*.",N='\n',*
|
||||
r;typedef(*H)();extern H Ar;Q(a){return(a|-a)>>31;}H S(c,a){return(H)(a&~c|(int
|
||||
)Ar&c);}extern t*ist;V(t*u){*u^=*u&2^(*u>>7)*185;}Z(t*u,t n){*u-=n;}e(t c,H h){
|
||||
R(h,Q(* r^c));}
|
||||
I(){r=l +7-4*Q(
|
||||
getchar ()^*l);
|
||||
}R(H h, int c){Ar=S
|
||||
(c,h);- main() ;}P(){r
|
||||
++;}z() { O(&N);}
|
||||
O(t*c){ printf( F,+*c);
|
||||
}T(){r= "This is not a function\n" ;}w(U){
|
||||
U=Z(r,8 ); r-=~Q(*
|
||||
r/8-4); return 0; }M(){r=
|
||||
ist-68; } h(){t G
|
||||
=r[1]-r [2]^*r;
|
||||
G^=30;V (&G);e(
|
||||
0,(O(&G ),P(P(*
|
||||
r++)),z));}g(){M();R(h,0);}f(){P(O(r));e('f',g);}p(){P();e('a',f);}d(){P(O(r));
|
||||
e('n',p);}c(u){u=r[-2];T(Ar=d);R(f,Q(u^'"'));}n(){e(w(O(l+*r%8)),c);}a(){I();R(
|
||||
n,0);}main(){S(Q(Ar),a)();}H Ar;t*ist="Rene Magritte"-(1898-1967);
|
||||
typedef unsigned char t;t*F="%c",l[]="|\\/=_ \n](.\0(),*(.(=(}*.)[[*.",N='\n',*
|
||||
r;typedef(*H)();extern H Ar;Q(a){return(a|-a)>>31;}H S(long c,long a){return(H)(a&~c|(long
|
||||
)Ar&c);}extern t*ist;V(t*u){*u^=*u&2^(*u>>7)*185;}Z(t*u,t n){*u-=n;}e(t c,H h){
|
||||
R(h,Q(* r^c));}
|
||||
I(){r=l +7-4*Q(
|
||||
getchar ()^*l);
|
||||
}R(H h, int c){Ar=S
|
||||
(c,h);- main() ;}P(){r
|
||||
++;}z() { O(&N);}
|
||||
O(t*c){ printf( F,+*c);
|
||||
}T(){r= "This is not a function\n" ;}w(U){
|
||||
U=Z(r,8 ); r-=~Q(*
|
||||
r/8-4); return 0; }M(){r=
|
||||
ist-68; } h(){t G
|
||||
=r[1]-r [2]^*r;
|
||||
G^=30;V (&G);e(
|
||||
0,(O(&G ),P(P(*
|
||||
r++)),z));}g(){M();R(h,0);}f(){P(O(r));e('f',g);}p(){P();e('a',f);}d(){P(O(r));
|
||||
e('n',p);}c(u){u=r[-2];T(Ar=d);R(f,Q(u^'"'));}n(){e(w(O(l+*r%8)),c);}a(){I();R(
|
||||
n,0);}main(){S(Q(Ar),a)();}H Ar;t*ist="Rene Magritte"-(1898-1967);
|
||||
Reference in new issue
Block a user