Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Apr 14, 2020
1 parent 6b58c76 commit d99eec2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flippy.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chroma, math, os, snappy, streams, strformat, strutils, vmath
import chroma, math, os, snappy, streams, strformat, vmath

when defined(useStb):
import stb_image/read as stbi
Expand Down Expand Up @@ -916,7 +916,7 @@ proc loadFlippy*(filePath: string): Flippy =
var f = newFileStream(filePath, fmRead)
defer: f.close()

if f.readStr(4) != &"flip":
if f.readStr(4) != "flip":
raise newException(Exception, &"Invalid Flippy header {filePath}.")

if f.readUint32() != version:
Expand Down

0 comments on commit d99eec2

Please sign in to comment.