diff options
author | yuta.256 <yuta.256@b7c3aa3b-274f-0410-ae0b-edc9d07c929d> | 2008-08-23 02:40:50 +0000 |
---|---|---|
committer | yuta.256 <yuta.256@b7c3aa3b-274f-0410-ae0b-edc9d07c929d> | 2008-08-23 02:40:50 +0000 |
commit | 5f60ac8a026473087ecf1315f9436ae5871e4f69 (patch) | |
tree | 300eb8fcd2f96f0544e03511439889bc25b00b93 /examples | |
parent | a844abd2925b6820947c8887e314a44435b884da (diff) | |
download | platform_external_libdivsufsort-5f60ac8a026473087ecf1315f9436ae5871e4f69.tar.gz platform_external_libdivsufsort-5f60ac8a026473087ecf1315f9436ae5871e4f69.tar.bz2 platform_external_libdivsufsort-5f60ac8a026473087ecf1315f9436ae5871e4f69.zip |
A few bug fixes.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/sasearch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sasearch.c b/examples/sasearch.c index c4ecdc1..7e5ca4f 100644 --- a/examples/sasearch.c +++ b/examples/sasearch.c @@ -109,8 +109,8 @@ main(int argc, const char *argv[]) { } /* Allocate 5n bytes of memory. */ - T = malloc((size_t)n * sizeof(sauchar_t)); - SA = malloc((size_t)n * sizeof(saidx_t)); + T = (sauchar_t *)malloc((size_t)n * sizeof(sauchar_t)); + SA = (saidx_t *)malloc((size_t)n * sizeof(saidx_t)); if((T == NULL) || (SA == NULL)) { fprintf(stderr, "%s: Cannot allocate memory.\n", argv[0]); exit(EXIT_FAILURE); |