Revision: 37529
          http://brlcad.svn.sourceforge.net/brlcad/?rev=37529&view=rev
Author:   bob1961
Date:     2010-02-02 21:12:21 +0000 (Tue, 02 Feb 2010)

Log Message:
-----------
Quell some warnings when compiling 64-bit Windows.

Modified Paths:
--------------
    brlcad/trunk/src/libbn/sphmap.c

Modified: brlcad/trunk/src/libbn/sphmap.c
===================================================================
--- brlcad/trunk/src/libbn/sphmap.c     2010-02-02 21:03:18 UTC (rev 37528)
+++ brlcad/trunk/src/libbn/sphmap.c     2010-02-02 21:12:21 UTC (rev 37529)
@@ -241,7 +241,7 @@
        total += mapp->nx[y];
 
     bu_semaphore_acquire( BU_SEM_SYSCALL );            /* lock */
-    y = fread( (char *)mapp->_data, mapp->elsize, total, fp ); /* res_syscall 
*/
+    y = (int)fread( (char *)mapp->_data, mapp->elsize, total, fp );    /* 
res_syscall */
     (void) fclose( fp );
     bu_semaphore_release( BU_SEM_SYSCALL );            /* unlock */
 
@@ -278,8 +278,8 @@
 
     for ( i = 0; i < mapp->ny; i++ ) {
        bu_semaphore_acquire( BU_SEM_SYSCALL );         /* lock */
-       got = fwrite( (char *)mapp->xbin[i], mapp->elsize,      /* res_syscall 
*/
-                     mapp->nx[i], fp );
+       got = (int)fwrite( (char *)mapp->xbin[i], mapp->elsize, /* res_syscall 
*/
+                          mapp->nx[i], fp );
        bu_semaphore_release( BU_SEM_SYSCALL );         /* unlock */
        if ( got != mapp->nx[i] ) {
            bu_log("spm_save(%s): write error\n", filename);
@@ -332,7 +332,7 @@
     /* Shamelessly suck it all in */
     buffer = (unsigned char *)bu_malloc( (unsigned)(nx*nx*3), "spm_px_load 
buffer" );
     bu_semaphore_acquire( BU_SEM_SYSCALL );            /* lock */
-    i = fread( (char *)buffer, 3, nx*ny, fp ); /* res_syscall */
+    i = (int)fread( (char *)buffer, 3, nx*ny, fp );    /* res_syscall */
     (void) fclose( fp );
     bu_semaphore_release( BU_SEM_SYSCALL );            /* unlock */
     if ( i != nx*ny )  {
@@ -401,7 +401,7 @@
        for ( x = 0; x < nx; x++ ) {
            spm_read( mapp, pixel, (double)x/(double)nx, (double)y/(double)ny );
            bu_semaphore_acquire( BU_SEM_SYSCALL );             /* lock */
-           got = fwrite( (char *)pixel, sizeof(pixel), 1, fp );        /* 
res_syscall */
+           got = (int)fwrite( (char *)pixel, sizeof(pixel), 1, fp );   /* 
res_syscall */
            bu_semaphore_release( BU_SEM_SYSCALL );             /* unlock */
            if ( got != 1 )  {
                bu_log("spm_px_save(%s): write error\n", filename);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to