script: Fix upper bounds

^ is the XOR operator.
This commit is contained in:
Tobias Brunner committed 2020-03-04 17:07:32 +01:00
1 parent e1cc667920
commit 0399314903
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -196,7 +196,7 @@ int main(int argc, char *argv[])
if (argc > 2)
{
len = atoi(argv[2]);
if (len > (2^30))
if (len > (1 << 30))
{
fprintf(stderr, "buffer too large (1 GiB limit)\n");
return 1;