Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

(incomplete minor fix) Ensuring `magazine`’s `bytes` array holds `uns…

…igned char`s

Not sure if this is a comprehensive fix for the problem, though; there’s a lot of places where we use `char` instead of `unsigned char`. I tried to replace them all, but ran into cascading errors involving string literals (which are `char[]`, not `unsigned char[]`). Not sure how to go about this.
  • Loading branch information...
commit 0b83ce388393aa49b3618cb03e5be544301c375d 1 parent 471e4f4
@ELLIOTTCABLE authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/Paws.o/Ancillary/Magazine/Magazine.c
View
2  Source/Paws.o/Ancillary/Magazine/Magazine.c
@@ -61,7 +61,7 @@ thing magazine__get(magazine this, char key[], setter callback) { cartridge *a
thing _magazine__get(cartridge cart, char key[], cartridge **address) {
cartridge *stacked_cartridge;
if (address == NULL) address = &stacked_cartridge;
- *address = &cart->bytes[*key];
+ *address = &cart->bytes[ ((unsigned char*)key)[0] ];
if (*key == '\0') return (thing){ {**address} };
Please sign in to comment.
Something went wrong with that request. Please try again.