diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-26 02:29:25 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-26 02:29:25 +0400 |
commit | 282b99353cfd506b959aff7cbbe73c3950c2c1b5 (patch) | |
tree | 9207b80e495260984f007d59f3a1b3cbdd2dc65b /source | |
parent | d9e0a9467503dc6cd004c67a118d315f2238f3b0 (diff) |
Correct alloc string and comment in makesdna
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 35be44c4090..6e85a63f7f2 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -970,7 +970,7 @@ static int make_structDNA(const char *baseDirectory, FILE *file) types = MEM_callocN(sizeof(char *) * maxnr, "types"); typelens_native = MEM_callocN(sizeof(short) * maxnr, "typelens_native"); typelens_32 = MEM_callocN(sizeof(short) * maxnr, "typelens_64"); - typelens_64 = MEM_callocN(sizeof(short) * maxnr, "typelens_64"); + typelens_64 = MEM_callocN(sizeof(short) * maxnr, "typelens_32"); structs = MEM_callocN(sizeof(short *) * maxnr, "structs"); /* insertion of all known types */ @@ -981,7 +981,7 @@ static int make_structDNA(const char *baseDirectory, FILE *file) add_type("short", 2); /* SDNA_TYPE_SHORT */ add_type("ushort", 2); /* SDNA_TYPE_USHORT */ add_type("int", 4); /* SDNA_TYPE_INT */ - add_type("long", 4); /* SDNA_TYPE_LONG */ /* should it be 8 on 64 bits? */ + add_type("long", 4); /* SDNA_TYPE_LONG */ /* maybe 4 or 8 bytes depending on platform, disallowed for now */ add_type("ulong", 4); /* SDNA_TYPE_ULONG */ add_type("float", 4); /* SDNA_TYPE_FLOAT */ add_type("double", 8); /* SDNA_TYPE_DOUBLE */ |