On 06/23/2009 06:59 PM, Ashesh Vashi wrote:
Andres Freund wrote:
On 06/23/2009 06:39 PM, Ashesh Vashi wrote:
Hi Andres,

I am not able to reproduce it on my end.

The following details may help me reproduce on my end:
1. Is it 32 bit/64 bit linux?
This is 64bit - I can create a 32bit chroot if you have suspicions in
that direction.
Can you please try to reproduce it on 32bit?
Because, I tried to reproduce the same on CentOS 5.3 (32 bit)/Ubuntu
8.10/9.04 (32 bit) without any success.
I found the issue. The code compares '(unsigned int)(-1)' with '(size_t)(-1)' which works on 32bit but not on 64bit.


Andres
Index: pgadmin/ctl/ctlSQLBox.cpp
===================================================================
--- pgadmin/ctl/ctlSQLBox.cpp	(revision 7940)
+++ pgadmin/ctl/ctlSQLBox.cpp	(working copy)
@@ -295,7 +295,7 @@
         selEnd = selStart + find.Length();
     }
 
-    if (selStart >= 0 && selStart != (unsigned int)(-1))
+    if (selStart >= 0 && selStart != (size_t)(-1))
     {
         if (reverse)
         {
-- 
Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-support

Reply via email to