Permalink
Browse files

Handle 64-bit test machines

  • Loading branch information...
1 parent 91b9db9 commit 84628e3a6aa7a25f7a1567149259eaf5067f75f3 @bmc committed Apr 11, 2010
Showing with 10 additions and 2 deletions.
  1. +6 −1 LICENSE.md
  2. +4 −1 models.py
View
@@ -1,7 +1,12 @@
+---
+title: License for Java EditLine
+layout: default
+---
+
This software is released under a BSD license, adapted from
<http://opensource.org/licenses/bsd-license.php>
-Copyright (c) 2008-2010 Brian M. Clapper.
+Copyright &copy; 2010 Brian M. Clapper.
All rights reserved.
Redistribution and use in source and binary forms, with or without
View
@@ -3,7 +3,10 @@
from google.appengine.ext import db
-FETCH_THEM_ALL = sys.maxint - 1
+# If the local platform is 64 bit, just using sys.maxint can cause problems.
+# It will evaluate to a number that's too large for GAE's 32-bit environment.
+# So, force it to a 32-bit number.
+FETCH_THEM_ALL = ((sys.maxint - 1) >> 32) & 0xffffffff
class Article(db.Model):

0 comments on commit 84628e3

Please sign in to comment.