diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-26 17:19:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-26 17:19:25 +0300 |
commit | e4b20f0180858aaeec9f057e8cc473a01e1e5280 (patch) | |
tree | fe9e3629ff21435df7027634a91405397c4a9695 /source/blender/blenkernel/intern/anim.c | |
parent | 63f84cf26d574284a30f2d28c57a6c32823f4425 (diff) |
2.5: various warning fixes. There was one actual bug in a few different
places, using sprintf with strings like ID names as the format string
(note that this name can contain a % character).
Diffstat (limited to 'source/blender/blenkernel/intern/anim.c')
-rw-r--r-- | source/blender/blenkernel/intern/anim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/anim.c b/source/blender/blenkernel/intern/anim.c index a32737762be..26afa0967c1 100644 --- a/source/blender/blenkernel/intern/anim.c +++ b/source/blender/blenkernel/intern/anim.c @@ -954,7 +954,7 @@ static Object *find_family_object(Object **obar, char *family, char ch) Object *ob; int flen; - if( obar[ch] ) return obar[ch]; + if( obar[(int)ch] ) return obar[(int)ch]; flen= strlen(family); @@ -966,7 +966,7 @@ static Object *find_family_object(Object **obar, char *family, char ch) ob= ob->id.next; } - obar[ch]= ob; + obar[(int)ch]= ob; return ob; } |