Skip to content

Instantly share code, notes, and snippets.

@NicolasT
Created January 8, 2010 10:44
Show Gist options
  • Select an option

  • Save NicolasT/271971 to your computer and use it in GitHub Desktop.

Select an option

Save NicolasT/271971 to your computer and use it in GitHub Desktop.
#include <glib.h>
gint main(gint argc, gchar **argv) {
guint64 i = 0;
i = (1 << 35) - 1;
g_print("S: %llu\n", i);
return 0;
}
/*
gcc `pkg-config --cflags --libs glib-2.0` -o test test.c -Wall -Werror
cc1: warnings being treated as errors
test.c: In function ‘main’:
test.c:6: error: left shift count >= width of type
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment