Blender Git Commit Log

Git Commits -> Revision a7241d0

Revision a7241d0 by Campbell Barton (master)
April 15, 2014, 04:22 (GMT)
GHash: add typed hash functions (were all (void *))

- BLI_ghashutil_strhash_n takes string length, to avoid terminating the string before hashing.
- BLI_ghashutil_inthash/uinthash take ints, to avoid casting to (void *)

This also showed up incorrect use of inthash, which was using a pointer.

Commit Details:

Full Hash: a7241d09cdd204a63e10a6e53c575f36639a3102
Parent Commit: ea610e6
Lines Changed: +64, -24

8 Modified Paths:

/source/blender/blenkernel/intern/node.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/treehash.c (+2, -2) (Diff)
/source/blender/blenlib/BLI_ghash.h (+17, -3) (Diff)
/source/blender/blenlib/intern/BLI_ghash.c (+27, -4) (Diff)
/source/blender/bmesh/tools/bmesh_beautify.c (+5, -5) (Diff)
/source/blender/editors/interface/interface_regions.c (+6, -3) (Diff)
/source/blender/editors/sculpt_paint/sculpt_uv.c (+2, -2) (Diff)
/source/blender/editors/uvedit/uvedit_smart_stitch.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021