Skip to content

Commit d24879b

Browse files
authored
Merge pull request #14 from keskitalo/no_malloc_h
No malloc.h
2 parents ade6118 + 66cac8c commit d24879b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libsharp/sharp_legendre.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* DO NOT EDIT. md5sum of source: d9499375a254cbf1e7903a249a8676ff *//*
1+
/* DO NOT EDIT. md5sum of source: a8c5c18a7a19c378187dbf461d12eb5c *//*
22
33
NOTE NOTE NOTE
44
@@ -64,7 +64,7 @@
6464
#include "sharp_legendre.h"
6565
#include "sharp_vecsupport.h"
6666

67-
#include <malloc.h>
67+
#include <stdlib.h>
6868

6969

7070

libsharp/sharp_legendre.c.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#include "sharp_legendre.h"
6565
#include "sharp_vecsupport.h"
6666

67-
#include <malloc.h>
67+
#include <stdlib.h>
6868

6969
/*{ for scalar, T in [("double", ""), ("float", "_s")] }*/
7070
/*{ for cs in range(1, 7) }*/

runjinja.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515

1616
extra_vars = dict(len=len)
1717
input = sys.stdin.read()
18-
sys.stdout.write('/* DO NOT EDIT. md5sum of source: %s */' % hashlib.md5(input).hexdigest())
18+
sys.stdout.write('/* DO NOT EDIT. md5sum of source: %s */' % hashlib.md5(input.encode()).hexdigest())
1919
sys.stdout.write(env.from_string(input).render(**extra_vars))

0 commit comments

Comments
 (0)