]> Dogcows Code - chaz/openbox/blobdiff - otk_c/display.c
rm consts that wont compile on some libfreetype's
[chaz/openbox] / otk_c / display.c
index 081655e9d8d9a5bc3619c69dcce35fcdfd1b3413..c0cae13cb07f5c37cbdd9bc5db25c7ad170aee11 100644 (file)
@@ -1,4 +1,4 @@
-// -*- mode: C; indent-tabs-mode: nil; -*-
+// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
 
 #include "../config.h"
 #include "display.h"
@@ -148,8 +148,8 @@ void OtkDisplay_Ungrab(OtkDisplay *self)
 
 OtkScreenInfo *OtkDisplay_ScreenInfo(OtkDisplay *self, int num)
 {
-  PyObject *py = PyList_GetItem((PyObject*)self->screenInfoList, num);
-  return (OtkScreenInfo*) py;
+  assert(num >= 0);
+  return (OtkScreenInfo*)PyList_GetItem((PyObject*)self->screenInfoList, num);
 }
 
 
This page took 0.021242 seconds and 4 git commands to generate.