From afe8c9f88b95feab365983cd8291f8ed0919cece Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 20 Jun 2005 17:32:24 +0000
Subject: [PATCH] sgi compile fix

---
 gl2ps.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gl2ps.c b/gl2ps.c
index 4a06c31..067691d 100644
--- a/gl2ps.c
+++ b/gl2ps.c
@@ -1,4 +1,4 @@
-/* $Id: gl2ps.c,v 1.211 2005-06-18 18:06:20 geuzaine Exp $ */
+/* $Id: gl2ps.c,v 1.212 2005-06-20 17:32:24 geuzaine Exp $ */
 /*
  * GL2PS, an OpenGL to PostScript Printing Library
  * Copyright (C) 1999-2005 Christophe Geuzaine <geuz@geuz.org>
@@ -3995,7 +3995,7 @@ static int gl2psPrintPDFShaderMask(int obj, int childobj)
                   (int)gl2ps->viewport[2], (int)gl2ps->viewport[3]);
   
   len = (childobj>0) 
-    ? strlen("/TrSh sh\n") + (int)log10(childobj)+1
+    ? strlen("/TrSh sh\n") + (int)log10((double)childobj)+1
     : strlen("/TrSh0 sh\n"); 
   
   offs += fprintf(gl2ps->stream,
-- 
GitLab