[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference decwet::visual

Title:Microsoft Visual C++ bug reports and kits
Notice:Register in Topic 2. 5.Last for latest Kit
Moderator:DECWET::THOMASN
Created:Tue May 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:521
Total number of notes:2938

470.0. "Trunction from `const __int64 ` to 'unsigned long'" by RICKS::GRIES () Thu Feb 27 1997 10:09

    So how dose one initiate an array of __int64 i. e.
    #ifdef __alpha
    uint64 ip_out[16][16] = {
      0x0000000000000000, 0x0000000080000000,
      0x8000000000000000, 0x8000000080000000,
      0x0000000000800000, 0x0000000080800000,
      0x8000000000800000, 0x8000000080800000,
      0x0080000000000000, 0x0080000080000000,
      0x8080000000000000, 0x8080000080000000,
      0x0080000000800000, 0x0080000080800000,
      0x8080000000800000, 0x8080000080800000,
    
    
T.RTitleUserPersonal
Name
DateLines
470.1DECC::OUELLETTEThu Feb 27 1997 14:5254
Your code is OK.  Why do you think it isn't?
cl -c -FAcs ai64.c

 Source File Listing 27-Feb-1997 17:46:02  DEC/MS C/C++ 11.01.7021 Page 1

000001	unsigned __int64 ip_out[16] = {
000002	  0x0000000000000000, 0x0000000080000000,
000003	  0x8000000000000000, 0x8000000080000000,
000004	  0x0000000000800000, 0x0000000080800000,
000005	  0x8000000000800000, 0x8000000080800000,
000006	
000007	  0x0080000000000000, 0x0080000080000000,
000008	  0x8080000000000000, 0x8080000080000000,
000009	  0x0080000000800000, 0x0080000080800000,
000010	  0x8080000000800000, 0x8080000080800000
000011	};

 Machine Code Listing 27-Feb-1997 17:46:02  DEC/MS C/C++ 11.01.7021 Page 2
								  

				.data
$$1:
			ip_out:
80000000     0008		.quad	2147483648
00000000     000C
00000000     0010		.quad	9223372036854775808
80000000     0014
80000000     0018		.quad	9223372039002259456
80000000     001C
00800000     0020		.quad	8388608
00000000     0024
80800000     0028		.quad	2155872256
00000000     002C
00800000     0030		.quad	9223372036863164416
80000000     0034
80800000     0038		.quad	9223372039010648064
80000000     003C
00000000     0040		.quad	36028797018963968
00800000     0044
80000000     0048		.quad	36028799166447616
00800000     004C
00000000     0050		.quad	9259400833873739776
80800000     0054
80000000     0058		.quad	9259400836021223424
80800000     005C
00800000     0060		.quad	36028797027352576
00800000     0064
80800000     0068		.quad	36028799174836224
00800000     006C
00800000     0070		.quad	9259400833882128384
80800000     0074
80800000     0078		.quad	9259400836029612032
80800000     007C

470.2my errorRICKS::GRIESFri Feb 28 1997 08:025
    It was my error uint64 was incorrectly define as unsigned long,
    because I had a statement #ifdef __alpha 
                              typedef unsigned long uint64;
    
    Thanks gries