Revision: 48431
http://brlcad.svn.sourceforge.net/brlcad/?rev=48431&view=rev
Author: r_weiss
Date: 2012-01-11 20:00:51 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
Updated file 'obj-g.c' file to correct type errors. Coverity CID 1765.
Modified Paths:
--------------
brlcad/trunk/src/conv/obj-g.c
Modified: brlcad/trunk/src/conv/obj-g.c
===================================================================
--- brlcad/trunk/src/conv/obj-g.c 2012-01-11 19:55:38 UTC (rev 48430)
+++ brlcad/trunk/src/conv/obj-g.c 2012-01-11 20:00:51 UTC (rev 48431)
@@ -1102,7 +1102,7 @@
switch (face_type) {
case FACE_V:
(*gfi)->index_arr_faces =
- (void *)bu_calloc((*gfi)->max_faces, sizeof(arr_1D_t),
+ (void *)bu_calloc((*gfi)->max_faces, sizeof(size_t
const *),
"index_arr_faces");
index_arr_faces_1D = (arr_1D_t)((*gfi)->index_arr_faces);
@@ -1110,14 +1110,14 @@
case FACE_TV:
case FACE_NV:
(*gfi)->index_arr_faces =
- (void *)bu_calloc((*gfi)->max_faces, sizeof(arr_2D_t),
+ (void *)bu_calloc((*gfi)->max_faces, sizeof(size_t
const (*)[2]),
"index_arr_faces");
index_arr_faces_2D = (arr_2D_t)((*gfi)->index_arr_faces);
break;
case FACE_TNV:
(*gfi)->index_arr_faces =
- (void *)bu_calloc((*gfi)->max_faces, sizeof(arr_3D_t),
+ (void *)bu_calloc((*gfi)->max_faces, sizeof(size_t
const (*)[3]),
"index_arr_faces");
index_arr_faces_3D = (arr_3D_t)((*gfi)->index_arr_faces);
@@ -1153,7 +1153,7 @@
case FACE_V:
(*gfi)->index_arr_faces =
(void *)bu_realloc(index_arr_faces_1D,
- sizeof(arr_1D_t) *
(*gfi)->max_faces,
+ sizeof(size_t const *) *
(*gfi)->max_faces,
"index_arr_faces");
index_arr_faces_1D =
@@ -1164,7 +1164,7 @@
case FACE_NV:
(*gfi)->index_arr_faces =
(void *)bu_realloc(index_arr_faces_2D,
- sizeof(arr_2D_t) *
(*gfi)->max_faces,
+ sizeof(size_t const (*)[2]) *
(*gfi)->max_faces,
"index_arr_faces");
index_arr_faces_2D =
@@ -1174,9 +1174,8 @@
case FACE_TNV:
(*gfi)->index_arr_faces =
(void *)bu_realloc(index_arr_faces_3D,
- sizeof(arr_3D_t) *
(*gfi)->max_faces,
+ sizeof(size_t const (*)[3]) *
(*gfi)->max_faces,
"index_arr_faces");
-
index_arr_faces_3D =
(arr_3D_t)((*gfi)->index_arr_faces);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits