Only in allegro4-64bit-MSVC/addons/allegrogl/docs: html
Only in allegro4-64bit-MSVC/addons/loadpng: build
Only in allegro4-64bit-MSVC/: allegro.mft
Only in allegro4-64bit-MSVC/: build
diff -r -Zu --exclude .git allegro4-git/demos/shooter/demo.c allegro4-64bit-MSVC/demos/shooter/demo.c
--- allegro4-git/demos/shooter/demo.c	2021-01-12 08:41:05.101058520 +0100
+++ allegro4-64bit-MSVC/demos/shooter/demo.c	2021-01-12 08:25:16.140453396 +0100
@@ -91,7 +91,7 @@
       install_joystick(JOY_TYPE_NONE);
    }
 
-   if (set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0) != 0) {
+   if (set_gfx_mode(GFX_AUTODETECT, 320, 200, 0, 0) != 0) {   //GFX_AUTODETECT
       if (set_gfx_mode(GFX_SAFE, 320, 200, 0, 0) != 0) {
          set_gfx_mode(GFX_TEXT, 0, 0, 0, 0);
          allegro_message("Unable to set any graphic mode\n%s\n",
Only in allegro4-64bit-MSVC/docs: build
Only in allegro4-64bit-MSVC/docs/txt: abi.txt
Only in allegro4-64bit-MSVC/docs/txt: addons.txt
Only in allegro4-64bit-MSVC/docs/txt: ahack.txt
Only in allegro4-64bit-MSVC/docs/txt: allegro.txt
Only in allegro4-64bit-MSVC/docs/txt: api.txt
Only in allegro4-64bit-MSVC/docs/txt: changes.txt
Only in allegro4-64bit-MSVC/docs/txt: const.txt
Only in allegro4-64bit-MSVC/docs/txt: dat2c.txt
Only in allegro4-64bit-MSVC/docs/txt: dat2s.txt
Only in allegro4-64bit-MSVC/docs/txt: datafile.txt
Only in allegro4-64bit-MSVC/docs/txt: dat.txt
Only in allegro4-64bit-MSVC/docs/txt: faq.txt
Only in allegro4-64bit-MSVC/docs/txt: grabber.txt
Only in allegro4-64bit-MSVC/docs/txt: help.txt
Only in allegro4-64bit-MSVC/docs/txt: index.txt
Only in allegro4-64bit-MSVC/docs/txt: license.txt
Only in allegro4-64bit-MSVC/docs/txt: makedoc.txt
Only in allegro4-64bit-MSVC/docs/txt: mistakes.txt
Only in allegro4-64bit-MSVC/docs/txt: packfile.txt
Only in allegro4-64bit-MSVC/docs/txt: readme.txt
Only in allegro4-64bit-MSVC/docs/txt: thanks.txt
Only in allegro4-64bit-MSVC/: keyboard.dat
Only in allegro4-64bit-MSVC/: language.dat
diff -r -Zu --exclude .git allegro4-git/src/file.c allegro4-64bit-MSVC/src/file.c
--- allegro4-git/src/file.c	2021-01-12 08:41:05.105058492 +0100
+++ allegro4-64bit-MSVC/src/file.c	2021-01-12 08:25:16.180453391 +0100
@@ -2065,7 +2065,7 @@
 	       return NULL;
 	    }
 	    _al_sane_strncpy(chunk->normal.passdata, f->normal.passdata, strlen(f->normal.passdata)+1);
-	    chunk->normal.passpos = chunk->normal.passdata + (long)f->normal.passpos - (long)f->normal.passdata;
+	    chunk->normal.passpos = chunk->normal.passdata + (ULONG_PTR)f->normal.passpos - (ULONG_PTR)f->normal.passdata;  //64bit   long
 	    f->normal.passpos = f->normal.passdata;
 	 }
 	 chunk->normal.flags |= PACKFILE_FLAG_OLD_CRYPT;
@@ -2188,7 +2188,7 @@
       }
 
       if ((f->normal.passpos) && (f->normal.flags & PACKFILE_FLAG_OLD_CRYPT))
-	 parent->normal.passpos = parent->normal.passdata + (long)f->normal.passpos - (long)f->normal.passdata;
+	 parent->normal.passpos = parent->normal.passdata + (ULONG_PTR)f->normal.passpos - (ULONG_PTR)f->normal.passdata;  //64bit  long
 
       free_packfile(f);
    }
diff -r -Zu --exclude .git allegro4-git/src/fsel.c allegro4-64bit-MSVC/src/fsel.c
--- allegro4-git/src/fsel.c	2021-01-12 08:41:05.105058492 +0100
+++ allegro4-64bit-MSVC/src/fsel.c	2021-01-12 08:25:16.180453391 +0100
@@ -933,7 +933,7 @@
    if (ugetc(get_filename(path))) {
       p = get_extension(path);
       if ((!ugetc(p)) && (ext) && (ugetc(ext)) && (!ustrpbrk(ext, uconvert_ascii(" ,;", tmp)))) {
-         size -= ((long)p - (long)path + ucwidth('.'));
+         size -= ((unsigned long long)p - (unsigned long long)path + ucwidth('.')); //64bit  long
          if (size >= uwidth_max(U_CURRENT) + ucwidth(0)) {  /* do not end with '.' */
             p += usetc(p, '.');
             ustrzcpy(p, size, ext);
diff -r -Zu --exclude .git allegro4-git/src/glyph.c allegro4-64bit-MSVC/src/glyph.c
--- allegro4-git/src/glyph.c	2021-01-12 08:41:05.105058492 +0100
+++ allegro4-64bit-MSVC/src/glyph.c	2021-01-12 08:25:16.180453391 +0100
@@ -25,7 +25,7 @@
 #define DRAW_GLYPH(bits, size)                                               \
 {                                                                            \
    AL_CONST unsigned char *data = glyph->dat;                                \
-   unsigned long addr;                                                       \
+   unsigned long long addr;                                                       \
    int w = glyph->w;                                                         \
    int h = glyph->h;                                                         \
    int stride = (w+7)/8;                                                     \
@@ -183,7 +183,7 @@
  */
 void _linear_draw_glyph32(BITMAP *bmp, AL_CONST FONT_GLYPH *glyph, int x, int y, int color, int bg)
 {
-   DRAW_GLYPH(32, sizeof(int32_t));
+   DRAW_GLYPH(32, sizeof(int32_t)); //64bit int32_t
 }
 
 #endif
diff -r -Zu --exclude .git allegro4-git/src/gsprite.c allegro4-64bit-MSVC/src/gsprite.c
--- allegro4-git/src/gsprite.c	2021-01-12 08:41:05.105058492 +0100
+++ allegro4-64bit-MSVC/src/gsprite.c	2021-01-12 08:25:16.180453391 +0100
@@ -139,7 +139,7 @@
 	       addr = bmp_write_line(bmp, j) + x1*3;
 	       for (i=x1; i<x2; i++) {
 		  bmp_select(sprite);
-		  pixel = bmp_read24((unsigned long)(sprite->line[j-y] + (i-x)*3));
+		  pixel = bmp_read24((unsigned long long)(sprite->line[j-y] + (i-x)*3));  //64bit unsigned long
 		  bmp_select(bmp);
 		  if (pixel != MASK_COLOR_24) {
 		     pixel = _blender_func24(pixel, _blender_col_24, fixtoi(hc));
diff -r -Zu --exclude .git allegro4-git/src/gui.c allegro4-64bit-MSVC/src/gui.c
--- allegro4-git/src/gui.c	2021-01-12 08:41:05.109058464 +0100
+++ allegro4-64bit-MSVC/src/gui.c	2021-01-12 08:25:16.180453391 +0100
@@ -571,7 +571,7 @@
  */
 static int cmp_tab(AL_CONST DIALOG *d1, AL_CONST DIALOG *d2)
 {
-   int ret = (int)((AL_CONST unsigned long)d2 - (AL_CONST unsigned long)d1);
+   int ret = (int)((AL_CONST unsigned long long)d2 - (AL_CONST unsigned long long)d1);  //64bit unsigned long
 
    /* Wrap around if d2 is before d1 in the dialog array. */
    if (ret < 0)
@@ -587,7 +587,7 @@
  */
 static int cmp_shift_tab(AL_CONST DIALOG *d1, AL_CONST DIALOG *d2)
 {
-   int ret = (int)((AL_CONST unsigned long)d1 - (AL_CONST unsigned long)d2);
+   int ret = (int)((AL_CONST unsigned long long)d1 - (AL_CONST unsigned long long)d2);  //64bit unsigned long
 
    /* Wrap around if d2 is after d1 in the dialog array. */
    if (ret < 0)
diff -r -Zu --exclude .git allegro4-git/src/guiproc.c allegro4-64bit-MSVC/src/guiproc.c
--- allegro4-git/src/guiproc.c	2021-01-12 08:41:05.109058464 +0100
+++ allegro4-64bit-MSVC/src/guiproc.c	2021-01-12 08:25:16.180453391 +0100
@@ -1365,17 +1365,17 @@
 		  thisitem = (*(getfuncptr)d->dp)(i, NULL);
 		  failure = FALSE;
 
-		  if ((int)((unsigned long)d->dp3) < ustrlen(thisitem)) {
-		     for (a=0; a < (int)((unsigned long)d->dp3); a++) {
+		  if ((int)((unsigned long long)d->dp3) < ustrlen(thisitem)) {
+		     for (a=0; a < (int)((unsigned long long)d->dp3); a++) {   //64bit unsigned long
 			if (utolower(ugetat(thisitem, a)) != utolower(ugetat(selected, a))) {
 			   failure = TRUE;
 			   break;
 			}
 		     }
 
-		     if ((!failure) && (utolower(ugetat(thisitem, (int)(unsigned long)d->dp3)) == utolower(c))) {
+		     if ((!failure) && (utolower(ugetat(thisitem, (int)(unsigned long long)d->dp3)) == utolower(c))) {
 			d->d1 = i;
-			d->dp3 = (void *)((unsigned long)d->dp3 + 1);
+			d->dp3 = (void *)((unsigned long long)d->dp3 + 1);
 
 			if (sel) {
 			   for (i=0; i<listsize; i++)
diff -r -Zu --exclude .git allegro4-git/src/unicode.c allegro4-64bit-MSVC/src/unicode.c
--- allegro4-git/src/unicode.c	2021-01-12 08:41:05.113058436 +0100
+++ allegro4-64bit-MSVC/src/unicode.c	2021-01-12 08:25:16.192453389 +0100
@@ -737,7 +737,7 @@
       }
    }
 
-   return (long)s - (long)orig;
+   return (long long)s - (long long)orig;
 }
 
 
@@ -1783,7 +1783,7 @@
       last = s;
    } while (ugetxc(&s) != 0);
 
-   return (long)last - (long)orig;
+   return (long long)last - (long long)orig;
 }
 
 
@@ -1800,7 +1800,7 @@
    do {
    } while (ugetxc(&s) != 0);
 
-   return (long)s - (long)orig;
+   return (long long)s - (long long)orig;
 }
 
 
@@ -2313,7 +2313,7 @@
    ret = strtol(t, &myendp, base);
 
    if (endp)
-      *endp = (char *)s + uoffset(s, (long)myendp - (long)t);
+      *endp = (char *)s + uoffset(s, (long long)myendp - (long long)t);
 
    return ret;
 }
@@ -2337,7 +2337,7 @@
    ret = strtod(t, &myendp);
 
    if (endp)
-      *endp = (char *)s + uoffset(s, (long)myendp - (long)t);
+      *endp = (char *)s + uoffset(s, (long long)myendp - (long long)t);
 
    return ret;
 }
@@ -2948,7 +2948,7 @@
 
 	       case 'p':
 		  /* pointer */
-		  slen = sprint_hex(string_arg, &info, FALSE, (unsigned long)(va_arg(args, void *)));
+		  slen = sprint_hex(string_arg, &info, FALSE, (unsigned long long)(va_arg(args, void *)));
 		  NEXT_C();
 		  break;
 
diff -r -Zu --exclude .git allegro4-git/src/win/gdi.c allegro4-64bit-MSVC/src/win/gdi.c
--- allegro4-git/src/win/gdi.c	2021-01-12 08:41:05.113058436 +0100
+++ allegro4-64bit-MSVC/src/win/gdi.c	2021-01-12 08:25:16.192453389 +0100
@@ -198,7 +198,7 @@
    int bpp;
    int x, y;
    int pitch;
-   int col;
+   long col;
    BYTE *pixels;
    BYTE *src, *dst;
 
diff -r -Zu --exclude .git allegro4-git/src/win/wddlock.c allegro4-64bit-MSVC/src/win/wddlock.c
--- allegro4-git/src/win/wddlock.c	2021-01-12 08:41:05.113058436 +0100
+++ allegro4-64bit-MSVC/src/win/wddlock.c	2021-01-12 08:25:16.192453389 +0100
@@ -165,7 +165,7 @@
       bmp->id |= BMP_ID_LOCKED;
 
       /* update the line array if our parent has moved */
-      pitch = (long)parent->line[1] - (long)parent->line[0];
+      pitch = (long long)parent->line[1] - (long long)parent->line[0];
       data = parent->line[0] +
              (bmp->y_ofs - parent->y_ofs) * pitch +
              (bmp->x_ofs - parent->x_ofs) * BYTES_PER_PIXEL(bitmap_color_depth(bmp));
@@ -263,7 +263,7 @@
       }
 
       /* update the line array if our parent has moved */
-      pitch = (long)parent->line[1] - (long)parent->line[0];
+      pitch = (long long)parent->line[1] - (long long)parent->line[0];
       data = parent->line[0] +
              (bmp->y_ofs - parent->y_ofs) * pitch +
              (bmp->x_ofs - parent->x_ofs) * BYTES_PER_PIXEL(bitmap_color_depth(bmp));
diff -r -Zu --exclude .git allegro4-git/src/win/wgdi.c allegro4-64bit-MSVC/src/win/wgdi.c
--- allegro4-git/src/win/wgdi.c	2021-01-12 08:41:05.113058436 +0100
+++ allegro4-64bit-MSVC/src/win/wgdi.c	2021-01-12 08:25:16.196453389 +0100
@@ -524,7 +524,7 @@
 
    /* create the screen surface */
    screen_surf = _AL_MALLOC_ATOMIC(w * h * BYTES_PER_PIXEL(color_depth));
-   gdi_screen = _make_bitmap(w, h, (unsigned long)screen_surf, &gfx_gdi, color_depth, w * BYTES_PER_PIXEL(color_depth));
+   gdi_screen = _make_bitmap(w, h, (unsigned long long)screen_surf, &gfx_gdi, color_depth, w * BYTES_PER_PIXEL(color_depth));
    if (!gdi_screen) {
       _TRACE(PREFIX_E "Could not make a bitmap out of the screen surface.\n");	   
       goto Error;
diff -r -Zu --exclude .git allegro4-git/src/win/wmidi.c allegro4-64bit-MSVC/src/win/wmidi.c
--- allegro4-git/src/win/wmidi.c	2021-01-12 08:41:05.113058436 +0100
+++ allegro4-64bit-MSVC/src/win/wmidi.c	2021-01-12 08:25:16.196453389 +0100
@@ -242,8 +242,8 @@
    id = (midi_input_driver->id & 0xFF) - 'A';
 
    /* open midi input device */
-   hr = midiInOpen(&midi_in_device, id, (DWORD)midi_in_proc,
-		   (DWORD)NULL, CALLBACK_FUNCTION);
+   hr = midiInOpen(&midi_in_device, id, (unsigned long long)midi_in_proc,
+		   (unsigned long long)NULL, CALLBACK_FUNCTION);
    if (hr != MMSYSERR_NOERROR) {
       _TRACE(PREFIX_E "midiInOpen failed (%x)\n", hr);
       midi_win32_in_exit(input);
diff -r -Zu --exclude .git allegro4-git/src/win/wsndwo.c allegro4-64bit-MSVC/src/win/wsndwo.c
--- allegro4-git/src/win/wsndwo.c	2021-01-12 08:41:05.113058436 +0100
+++ allegro4-64bit-MSVC/src/win/wsndwo.c	2021-01-12 08:25:16.196453389 +0100
@@ -212,7 +212,7 @@
       if (++digiwobufpos > (digiwobufdivs-1))
          digiwobufpos = 0;
 
-      _mix_some_samples((unsigned long) (digiwobufdata+((digiwobufsize/digiwobufdivs)*digiwobufpos)), 0, TRUE);
+      _mix_some_samples((unsigned long long) (digiwobufdata+((digiwobufsize/digiwobufdivs)*digiwobufpos)), 0, TRUE);
    }
 }
 
@@ -309,7 +309,7 @@
       goto Error;
    }
 
-   _mix_some_samples((unsigned long) digiwobufdata, 0, TRUE);
+   _mix_some_samples((unsigned long long) digiwobufdata, 0, TRUE);
 
    /* get volume */
    waveOutGetVolume(hWaveOut, &initial_volume);
