The attached patch fixes this.

Regards
Andreas Jochens
diff -urN ../tmp-orig/aqsis-1.1.0.20050815/libri2rib/output.cpp 
./libri2rib/output.cpp
--- ../tmp-orig/aqsis-1.1.0.20050815/libri2rib/output.cpp       2005-04-08 
23:17:00.000000000 +0000
+++ ./libri2rib/output.cpp      2005-08-21 12:43:52.000000000 +0000
@@ -434,7 +434,7 @@
 RtVoid CqOutput::RiObjectInstance( RtObjectHandle handle )
 {
     PR( "ObjectInstance", ObjectInstance ); S;
-    PI( ( RtInt ) handle );
+    PI( ( long ) handle );
     EOL;
 }
 
@@ -786,7 +786,7 @@
 RtVoid CqOutput::RiIlluminate( RtLightHandle light, RtBoolean onoff )
 {
     PR( "Illuminate", Illuminate ); S;
-    PI( ( RtInt ) light ); S;
+    PI( ( long ) light ); S;
 
     if ( onoff == RI_TRUE )
         print( "1" );
diff -urN ../tmp-orig/aqsis-1.1.0.20050815/libshadervm/shadervm.cpp 
./libshadervm/shadervm.cpp
--- ../tmp-orig/aqsis-1.1.0.20050815/libshadervm/shadervm.cpp   2005-08-15 
09:04:44.000000000 +0000
+++ ./libshadervm/shadervm.cpp  2005-08-21 12:44:02.000000000 +0000
@@ -1092,7 +1092,7 @@
                             // We have an initialiser we have not run yet
                             if((*candidate)->init){
                                 (*candidate)->initData =
-                                    
((*candidate)->init)((int)((void*)this),NULL);
+                                    
((*candidate)->init)((long)((void*)this),NULL);
                             };
                             (*candidate)->initialised = true;
                         };

Reply via email to