delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/17/18:11:58

From: benny AT crocodial DOT de (Benjamin Riefenstahl)
Subject: Re: Problem with a header file
17 Sep 1998 18:11:58 -0700 :
Message-ID: <3600DA8A.EA6B739F.cygnus.gnu-win32@crocodial.de>
References: <9601-Wed16Sep1998105335+0200-vzell AT de DOT oracle DOT com>
Mime-Version: 1.0
To: Cygnus <gnu-win32 AT cygnus DOT com>

Hi Volker,


Dr. Volker Zell wrote:
> The problem is in the oratypes.h include file:
> 
> When I change line 169 (and the same in 183) from
> 
>   typedef unsigned _int64 ub8;
> 
> to
> 
>   typedef unsigned int ub8;
> 
> the compiliation succeeds and the program works. I'm not a programmer
> so my question is, why does this work?

I don't think it does. Your code evaluates to a 32-bit unsigned integer,
while the original specified 64 bits (with an MS-specific extension to
the language). It's possible that your program doesn't use this specific
code though.

Anyway, for a better fix change the code to this:

   typedef unsigned long long ub8;


so long, benny
======================================
Benjamin Riefenstahl (benny AT crocodial DOT de)
Crocodial Communications EntwicklungsGmbH
Ruhrstraße 61, D-22761 Hamburg, Germany
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019