Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-04-29 14:49:02 +0400
committerTon Roosendaal <ton@blender.org>2007-04-29 14:49:02 +0400
commit243d1a28c0635a85c2dca9a23e9465b170b0ba3a (patch)
tree90a6fb16f8ca90d04d70e8ff129c24c98b7f003a /source/blender/src/drawmesh.c
parente4d6f331eb90f7375a241a7698bd6958b6ced326 (diff)
Casting fixes for 64 bits. Incomplete commit, discussion on proper casting
has to be finished.
Diffstat (limited to 'source/blender/src/drawmesh.c')
-rw-r--r--source/blender/src/drawmesh.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/drawmesh.c b/source/blender/src/drawmesh.c
index 3d574633219..cf14427e029 100644
--- a/source/blender/src/drawmesh.c
+++ b/source/blender/src/drawmesh.c
@@ -648,7 +648,7 @@ static int draw_tfaces3D__setHiddenOpts(void *userData, int index)
{
struct { Mesh *me; EdgeHash *eh; } *data = userData;
MEdge *med = &data->me->medge[index];
- unsigned int flags = (int) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
+ unsigned long flags = (long) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
if((G.f & G_DRAWSEAMS) && (med->flag&ME_SEAM)) {
return 0;
@@ -666,7 +666,7 @@ static int draw_tfaces3D__setSeamOpts(void *userData, int index)
{
struct { Mesh *me; EdgeHash *eh; } *data = userData;
MEdge *med = &data->me->medge[index];
- unsigned int flags = (int) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
+ unsigned long flags = (long) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
if (med->flag&ME_SEAM) {
if (G.f&G_HIDDENEDGES) {
@@ -682,7 +682,7 @@ static int draw_tfaces3D__setSelectOpts(void *userData, int index)
{
struct { Mesh *me; EdgeHash *eh; } *data = userData;
MEdge *med = &data->me->medge[index];
- unsigned int flags = (int) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
+ unsigned long flags = (long) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
return flags & eEdge_Select;
}
@@ -690,7 +690,7 @@ static int draw_tfaces3D__setActiveOpts(void *userData, int index)
{
struct { Mesh *me; EdgeHash *eh; } *data = userData;
MEdge *med = &data->me->medge[index];
- unsigned int flags = (int) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
+ unsigned long flags = (long) BLI_edgehash_lookup(data->eh, med->v1, med->v2);
if (flags & eEdge_Active) {
if (flags & eEdge_ActiveLast) {